plot_PolySet | R Documentation |
Plot a projected PolySet
plot_PolySet(x, projection, add = FALSE, ...)
x |
A PolySet (see |
projection |
a |
add |
logical; If TRUE, add to existing plot |
... |
Additional parameters passed on to |
This function is a legacy method for plotting data from the
PBSmapping
package, with
data(worldLL, package = "PBSmapping") plot_PolySet(worldLL, old_globeproj("longlat"), add = FALSE)
To avoid a dependency on the PBSmapping
package, the example below
constructs a synthetic object of the same format.
An (invisible) sp
object of projected lines
old_globeproj()
world_example <- data.frame(
PID = c(0L, 0L, 0L, 1L, 1L),
POS = c(1L, 2L, 3L, 1L, 2L),
X = c(10, 20, 30, 15, 25),
Y = c(10, 15, 70, -40, -50)
)
plot_PolySet(world_example, old_globeproj("longlat"), add = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.