Learn R Programming

GEOmap (version 1.6-09)

DOTOPOMAPI: Do Interactive world Topography

Description

Interactive selction and plotting of world topography

Usage

DOTOPOMAPI(TOPO = TOPO, themap = NULL, shiftlon = 0, ALOC = NULL, DOCONT = TRUE, DOIMG = TRUE, PNTS = NULL, PCOL = "red", PCH = 1, PCEX = 1, PS = FALSE, MAPPATH = NULL, polybase = NULL, USAmap = NULL, usacity = NULL, worldcity = NULL)

Arguments

TOPO
Topographic structure
themap
Map structure
shiftlon
rotation of map in Longitude
ALOC
previously set target
DOCONT
logical, TRUE=add contour
DOIMG
logical, TRUE=add contour
PNTS
Plot set of points on map
PCOL
color palette
PCH
plotting character
PCEX
character expansion
PS
logical, TRUE=make postscript
MAPPATH
path to map data base files
polybase
polygon structure for continents
USAmap
USA detailed map structure
usacity
list of USA cities with population
worldcity
list of world cities

Value

  • Interactive Graphics side effect

Details

Should select a small section of the map or the program will take a long time to interpolate.

See Also

BASICTOPOMAP, RPMG

Examples

Run this code
library(geomapdata)
data(worldmap)
data(ETOPO5)

###  this is in interactive mode with plotworldmap:
DOTOPOMAPI(TOPO=ETOPO5, themap=worldmap, shiftlon=180)



##  select a small region,  like the boot heel of italy

###########  italy:
Alocat = list(
lon=c(11.55842, 18.92308),
lat=c(35.71026, 47.05730),
LON=c(11.55842, 18.92308),
LAT=c(35.71026, 47.05730),
utmbox=list(x=32, y="S", lon=6,lat=32), 
x=c(191.5584, 198.9231),
y=c(35.71026, 47.05730),
UTM0=list(lam=9,phi=36),
shiftlon=180)


DOTOPOMAPI(TOPO=ETOPO5, themap=worldmap, ALOC=Alocat, shiftlon=180)

Run the code above in your browser using DataLab