mapGrob {gmaps} | R Documentation |
Map grid graphics objects
Description
mapGrob is the representation of a map object in the grid graphics system.
Usage
mapGrob(
database = "world",
regions=".",
exact=F,
xlim=NULL,
ylim=NULL,
name=NULL,
fill.col=NA,
gp=NULL,
vp=NULL,
asp=1,
...)
grid.mapGrob(...)
validDetails.mapGrob(x)
Arguments
database |
Any of the valid maps databases. |
regions |
A vector of the regions to be included in the map. |
exact |
A logical specifying if regions should be matched exactly or partially. |
xlim |
x range on the map objecct, ussually correspondes to longitude. |
ylim |
y range on the map objecct, ussually correspondes to latitude. |
name |
the name of the object. |
fill.col |
color to use to fill the map with. Superceeds gp\$fill if specified. |
gp |
grid graphics parameters, ie. a gpar object. |
vp |
Viewport for the object. used to embed within other objects. |
asp |
aspect ratio for the map. |
... |
other parameters passed onto the map function. |
x |
A mapGrob object |
See Also
grid
, maps
Examples
#The four corners area of the United States colored.
grid.mapGrob("state",c("utah","new mexico","arizona","colorado"),fill.col=rainbow(4))
[Package
gmaps version 0.1
Index]