View source: R/GEOmap.CombineStrokes.R
GEOmap.CombineStrokes | R Documentation |
Combine strokes in a GEOmap list
GEOmap.CombineStrokes(MAP, SEL)
MAP |
GEOmap list |
SEL |
index of strokes to be combined |
Stokes are combined in the order designated by the SEL index vector. The direction of the strokes is not modified - this may have to be fixed so that strokes align properly.
GEOmap list
STROKES |
Metadata for strokes |
POINTS |
list, lat=vector, lon=vector |
Jonathan M. Lees<jonathan.lees@unc.edu>
GEOmap.cat, GEOmap.Extract, GEOmap.CombineStrokes, list.GEOmap
data(coastmap)
SEL = which(coastmap$STROKES$nam=="Caribbean")
CAR = GEOmap.Extract(coastmap, SEL, INOUT="in" )
plotGEOmap(CAR, MAPstyle=3, NUMB=TRUE)
CAR2 = GEOmap.CombineStrokes(CAR, SEL =c(6:15) )
plotGEOmap(CAR2, MAPstyle=3, MAPcol='red' , add=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.