Description Usage Arguments Examples
Multipanel map of locations, one map for each group.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
bygroup |
Vector, identifying the group membership of the locations to be mapped. |
sug |
Vector, identifying the unique groups to which locations may belong,
default sort(unique( |
plottext |
Logical scalar indicating if text (TRUE) or symbols (FALSE, default) should be printed at each location. |
ID |
Vector, plot symbol (if |
emphasis |
Logical vector, indicating observations that should be emphasized on the
map, same length as |
short |
Logical scalar, indicating aspect of map area. If TRUE, the default, the mapped area is assumed to be wider (longitudinally) than tall. Used to better arrange multiple maps on a single page. |
lon |
A numeric vector of longitudes in decimal degrees. |
lat |
A numeric vector of latitudes in decimal degrees.
Same length as |
samescale |
Logical scalar, indicating if the same (TRUE, default) or different (FALSE) lon/lat scales should be used for all panels. |
rlon |
A numeric vector of length 2, range of longitudes to map,
in decimal degrees. The default, NULL, means that the range of |
rlat |
A numeric vector of length 2, range of latitudes to map,
in decimal degrees. The default, NULL, means that the range of |
cushion |
A numeric scalar indicating the amount of cushion to add to the |
IDcol |
A vector, the color used to map locations, same length as |
mapcol |
A scalar, the color used to draw the map lines (e.g., lake boundary), default "gray". |
boxcol |
A scalar, the color used to draw the box around the map, default "gray". |
misscol |
A scalar, the color used to label maps with no locations in the given bygroup, default "brown". |
misstext |
A character scalar, the text used to label maps with no locations in the given bygroup, default " - No sites". |
mar |
A numeric vector of length 4, the number of lines of margin c(bottom, left, top, right) around each plotted map plot, default c(0, 0, 2.5, 0). |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
mygroup <- c(1, 1, 1, 2, 2, 2, 3, 3, 3)
myID <- LETTERS[1:9]
mylon <- rnorm(9, mean=-82)
mylat <- rnorm(9, mean=45)
mapMulti(bygroup=mygroup, plottext=TRUE, ID=myID,
emphasis=myID %in% c("G", "A"), cushion=0, lon=mylon, lat=mylat)
mapMulti(bygroup=mygroup, sug=1:4, short=FALSE, lon=mylon, lat=mylat,
samescale=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.