plot.electrograph {ElectroGraph} | R Documentation |
Given an electrograph object, display a two-dimensional representation.
## S3 method for class 'electrograph': plot(x, connectivity.mode = c("sociomatrix","shortest.path","ohmic","ohmic.socio"), force.mode = c("fruchterman.reingold", "kamada.kawai"), ego.focus = NULL, manual.coords = NULL, redo.coordinates = FALSE, just.coordinates = FALSE, node.colors = NULL, label.colors = NULL, pts.cex = 1.5, label.cex = 1.5, component.border.col = 8, edge.thickness = c("standard", "electro.betweenness"), max.thick = 2, source.sink.pair = NULL, previous.electrograph.plot.object = NULL, tick.marks=FALSE, bound.size=1, width.height.factor=1, verbose = TRUE, edge.colors.specified = NULL, edge.color.fr.ne.em = c("black", "blue", "red"), ...)
x |
An object of class ``electrograph''. |
connectivity.mode |
Should the projected distances be calculated using the shortest path, or the equivalent conductance of the electro-social approach? |
force.mode |
Which force-directed placement method should be used to find node coordinates? |
ego.focus |
A vector of nodes whose importance should be considered highest in the plot. |
manual.coords |
If desired, the manual input of coordinates for each node. |
redo.coordinates |
If true, recalculate the true distances between points using the desired distance method. |
just.coordinates |
If true, do not output a plot. |
node.colors |
The colors of the nodes to be plotted. |
label.colors |
The colors of node labels. |
pts.cex |
Point sizes. |
label.cex |
Label sizes. |
component.border.col |
The color assigned to the boxes separating graph components. |
edge.thickness |
Determines whether the sociomatrix or electro-social betweenness will determine the thickness of edges in the plot. |
max.thick |
The maximum thickness of an edge in plotting. |
source.sink.pair |
A vector of length 2 that specifies an electro-social current path to be highlighted. |
previous.electrograph.plot.object |
A previously produced graph object, for the sake of lining up a new plot with a previous one. |
tick.marks |
If TRUE, place tick marks at equal distances on each axis. |
bound.size |
Denotes the degree extra space to surround each component in the plot. |
width.height.factor |
The desired ratio of width to height in the resulting plot. |
verbose |
If TRUE, display additional information while running. |
edge.colors.specified |
Set this to an (nodes)-by-(nodes) matrix to have each tie be the desired RGB color. |
edge.color.fr.ne.em |
A three-item vector indicating the colors of ``friend'', ``neutral'', or ``enemy'' ties when fidelities are specified. |
... |
Additional options to pass to ``plot''. |
Returns an object of class ``electrograph.plot'' which can be replotted or used in later analysis.
Andrew C. Thomas <act@acthomas.ca>
sources <- c(1,2,3,4) sinks <- c(2,3,1,5) socio <- electrograph(cbind(sources,sinks)) plot(socio)