Learn R Programming

spnet (version 0.9.1-0)

graph.map.plot.position: Plot a map labelled with the ID numbering

Description

The graph.map.plot.position function allows to plot maps defined as for example SpatialNetwork or SpatialPolygons objects, and render the ID numbering.

Usage

graph.map.plot.position(x, label = "", ...)
"graph.map.plot.position"(x, label = "", ...)
"graph.map.plot.position"(x, label = "", ...)

Arguments

x
an object for which a graph.map.plot.position method is defined.
label
a character of length 1 for prefixing seat numbering.
...
other arguments to pass to the plot function. The main usage is setting the cex value.

Methods (by class)

  • SpatialPolygons: method for SpatialPolygons objects.
  • SpatialNetwork: method for SpatialNetwork objects.

See Also

Other res: SpatialNetwork-class

Examples

Run this code
## The world map
data(world.map.simplified, package = "spnet")

graph.map.plot.position(world.map.simplified)
graph.map.plot.position(world.map.simplified, cex = 0.4)
graph.map.plot.position(world.map.simplified, label = 'ID ', cex = 0.3)

Run the code above in your browser using DataLab