imap {iplots} | R Documentation |
This function creates a new interactive map from the given data.
imap(x, y=NULL, ...)
x |
either an object of the class "map" as created by the
map function or a vector of the x-coordinates of the map
polygons |
y |
y-coordinates of the map polygons |
... |
All additional parameters are passed to
iplot.opt . |
Creates an interactive map plot.
The input can be either an object of the class "map"
passed
directly to the x
parameter or two vectors of matching
coordinates passed to x
and y
. The format for polygons
in the same as used by the map
function.
Each polygon should correspond to a case and it will be linked
correspondingly. See ivar.new.map
for details on map
variables.
Note: this function is currently experimental and it may change in the future.
Resulting plot object.
library(maps) m <- map('state', plot=FALSE) imap(m)