plot_ptn: A plot method for public transportation networks (PTNs).

View source: R/0_helper_net.r

plot_ptnR Documentation

A plot method for public transportation networks (PTNs).

Description

A plot method for public transportation networks (PTNs).

Usage

plot_ptn(
  g,
  color.coding = NULL,
  color.scheme = rev(sequential_hcl(5)),
  legend = FALSE,
  ...
)

Arguments

g

igraph object, network graph representing the public transportation network, vetrices represent stations, which are linked by an edge if there is a direct transfer between them

color.coding

numeric vector with length equal to the number of network nodes

color.scheme

character vector of length 5 indicating the vertex.color, default is rev(sequential_hcl(5))

legend

logical indicating whether legend for color-coding should be added or not.

...

further arguments to be passed to plot.igraph

Value

No return value

See Also

Other network helper: analyze_ptn()

Examples

data(ptnAth)
plot_ptn(ptnAth)

data(ptnGoe)
plot_ptn(ptnGoe)


NetOrigin documentation built on Sept. 8, 2023, 5:58 p.m.