Last chance! 50% off unlimited learning
Sale ends in
High Level plot of GEO map
plotGEOmap(MAP, LIM = c(-180, -90, 180, 90) ,
shiftlon = 0, add = TRUE ,
NUMB = FALSE , SEL = NULL, MAPcol = NULL,
MAPstyle = NULL, border=NA,
PLOT = TRUE, PRINT=FALSE, BB = FALSE, ...)
Graphical Side Effects
Map Structure
Lat-Lon limits
logical, TRUE= add to existing plot
Index vector of strokes to be used in plotting, default=NULL(use all that pass other tests)
override color for maps
override plotting style for maps
color, add border to polygons, NA=no border
degrees, rotate longitude
logical, number the strokes on the map
logical, TRUE=plot map, else just set up plotting area
logical, TRUE=show selected stroke indeces on the screen(default=FALSE)
logical, TRUE=add bounding box to each stroke (default=FALSE)
graphical parameters
Jonathan M. Lees<jonathan.lees.edu>
plotGEOmap does not plot a projected map. MAPcol and MAPstyle can be used to override the colors and style in the map-list. These are applied to all the strokes.
plotGEOmapXY, DOTOPOMAPI, addLLXY
library(geomapdata)
data(coastmap)
plotGEOmap(coastmap , xaxs='i', yaxs='i')
#################### example:
coastmap$STROKES$col[coastmap$STROKES$code=="C" ] = rgb(1, .6, .6)
coastmap$STROKES$col[coastmap$STROKES$code=="c" ] = rgb(1, .9, .9)
coastmap$STROKES$col[coastmap$STROKES$code=="L" ] = rgb(.6, .6, 1)
plot(c(-30, 370), c(-85, 85), type='n', ann=FALSE, xaxs='i', yaxs='i')
plotGEOmap(coastmap , border='black' , add=TRUE)
title(xlab="Longitude", ylab="Latitude" )
grid()
box()
if (FALSE) {
### political map of the world
library(geomapdata)
plotGEOmap(coastmap , border='black' , add=FALSE, xaxs='i')
data(europe.bdy)
data(asia.bdy)
data(africa.bdy)
data(namer.bdy)
data(samer.bdy)
data(USAmap)
plotGEOmap(europe.bdy , add=TRUE)
plotGEOmap(asia.bdy , add=TRUE)
plotGEOmap(africa.bdy , add=TRUE)
plotGEOmap(namer.bdy , add=TRUE)
plotGEOmap(samer.bdy , add=TRUE)
plotGEOmap(USAmap , add=TRUE)
}
Run the code above in your browser using DataLab