Learn R Programming

intensitynet (version 1.3.1)

plot.intensitynetDir: Plot intensitynet object

Description

Plot intensitynet object

Usage

# S3 method for intensitynetDir
plot(
  x,
  vertex_labels = "none",
  edge_labels = "none",
  xy_axes = TRUE,
  enable_grid = FALSE,
  show_events = FALSE,
  alpha = 1,
  path = NULL,
  ...
)

Value

No return value, same as graphics::plot.

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

Examples

Run this code

data("dir_intnet_chicago")
plot(dir_intnet_chicago) # basic plot
plot(dir_intnet_chicago, enable_grid = TRUE) # with grid
plot(dir_intnet_chicago, xy_axes = FALSE) # without axes
plot(dir_intnet_chicago, path = c("V1","V2","V24","V25","V26","V48")) # highlight a path

Run the code above in your browser using DataLab