coastmap | R Documentation |
Global Maps of Coast
data(coastmap)
List structure:
list(nam, num, index, col, style, code, LAT1, LAT2, LON1, LON2)
list(lat, lon)
list(type, LAT0, LON0, LAT1, LAT2, LATS, LONS, DLAT, DLON, FE, FN, name)
This map list is used for filling in coastal lines for global maps. The style=3 is for filling in polygons. The strokes are named for easier access to particular parts ofthe globe. Asia and Africa are one stroke, as are North and South America. there are currently three codes: C=major coast, c=smaller coasts, L=interior lakes.
data(coastmap)
####### see the codes:
unique(coastmap$STROKES$code)
######### see the different names:
unique(coastmap$STROKES$nam)
######### change the colors based on code
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)
plotGEOmap(coastmap , border='black' , add=FALSE, xaxs='i')
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.