Learn R Programming

intensitynet (version 1.3.1)

plot.intensitynetMix: Plot intensitynet object

Description

Plot intensitynet object

Usage

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

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

path

vector with the nodes of the path to be highlighted. Default NULL

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

...

extra arguments for the plot

Examples

Run this code

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

Run the code above in your browser using DataLab