stplanr (version 0.3.1)

plot,SpatialLinesNetwork,ANY-method: Plot a SpatialLinesNetwork

Description

Plot a SpatialLinesNetwork

Usage

# S4 method for SpatialLinesNetwork,ANY
plot(x, component = "sl", ...)

Arguments

x

The SpatialLinesNetwork to plot

component

The component of the network to plot. Valid values are "sl" for the geographic (SpatialLines) representation or "graph" for the graph representation.

...

Arguments to pass to relevant plot function.

See Also

Other rnet: SpatialLinesNetwork, calc_catchment_sum, calc_catchment, calc_moving_catchment, calc_network_catchment, find_network_nodes, gsection, islines, lineLabels, overline2, overline, plot,sfNetwork,ANY-method, sln2points, sum_network_links, sum_network_routes

Examples

Run this code
# NOT RUN {
sln <- SpatialLinesNetwork(route_network)
plot(sln)
plot(sln, component = "graph")
# }

Run the code above in your browser using DataLab