Learn R Programming

GEOmap (version 2.5-11)

GEOmap.CombineStrokes: Combine strokes in a GEOmap list

Description

Combine strokes in a GEOmap list

Usage

GEOmap.CombineStrokes(MAP, SEL)

Value

GEOmap list

STROKES

Metadata for strokes

POINTS

list, lat=vector, lon=vector

Arguments

MAP

GEOmap list

SEL

index of strokes to be combined

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

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.

See Also

GEOmap.cat, GEOmap.Extract, GEOmap.CombineStrokes, list.GEOmap

Examples

Run this code

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)

Run the code above in your browser using DataLab