Learn R Programming

GEOmap (version 2.1)

GlobeView: Global Plot

Description

Plot global view of the earth

Usage

GlobeView(phicen, lamcen, worldmap, MAXR, SEL = 1, circol = rgb(1, 0.8, 0.8), innercol = "white", linecol = rgb(0, 0, 0), mapcol = rgb(0, 0, 0), backcol = "white", add=FALSE)

Arguments

phicen
Latitude
lamcen
Longitude
worldmap
Map List
MAXR
Maximum radius (degrees)
SEL
Selection index from map
circol
color for concentric circles
innercol
inner color
linecol
line color, NA=do not plot
mapcol
map fill color, NA=do not fill polygon
backcol
background color
add
logical, FALSE means start a new plot

Value

  • Perimeterx,y points around the perimeter of the plot

Details

Creates a plot of view of the globe from a point in space using an Equal-Area projection. Uses the lamaz.eqarea routine for projection. (Lambert-Azimuthal Equal Area). Using NA for linecol or mapcol means do not plot lines or fill polygons respectively.

See Also

plotGEOmap, lamaz.eqarea

Examples

Run this code
data(coastmap)

phicen  =32.20122+5
lamcen  = 335.7092+20
MAXR    = 100

carolinablue = rgb(83/255, 157/255, 194/255)


SEL=which( coastmap$STROKES$code=="C")
SEL = c(SEL, which(coastmap$STROKES$nam=="GreatBritain"),
which(coastmap$STROKES$nam=="Japan"), which(coastmap$STROKES$nam=="Ireland"))


PER = GlobeView(phicen, lamcen, SEL=SEL, coastmap, MAXR, linecol=rgb(.2, .2, .2), mapcol=rgb(.8, .8, .8), 
innercol=carolinablue , circol=carolinablue ,    backcol="white")

Run the code above in your browser using DataLab