plot.intensitynet {intensitynet} | R Documentation |
Plot intensitynet object
Description
Plot intensitynet object
Usage
## S3 method for class 'intensitynet'
plot(
x,
vertex_labels = "none",
edge_labels = "none",
xy_axes = TRUE,
enable_grid = FALSE,
show_events = FALSE,
alpha = 1,
path = NULL,
...
)
Arguments
x |
intensitynet object |
vertex_labels |
list -> labels for the vertices |
edge_labels |
list -> labels for the edges |
xy_axes |
show the x and y axes |
enable_grid |
draw a background grid |
show_events |
option to show the events as orange squares, FALSE by default |
alpha |
optional argument to set the transparency of the events (show_events = TRUE). The range is from 0.1 (transparent) to 1 (opaque). Default: alpha = 1 |
path |
vector with the nodes of the path to be highlighted. Default NULL |
... |
extra arguments for the plot |
Value
No return value, same as graphics::plot.
Examples
data("und_intnet_chicago")
plot(und_intnet_chicago) # basic plot
plot(und_intnet_chicago, enable_grid = TRUE) # with grid
plot(und_intnet_chicago, xy_axes = FALSE) # without axes
plot(und_intnet_chicago, path = c("V1","V2","V24","V25","V26","V48")) # highlight a path
[Package intensitynet version 1.4.0 Index]