
mapScalebar(x, y=NULL, length,
lwd=4*par("lwd"), cex=1.2*par("cex"), col="black")
legend
, but at the moment
y
must be NULL
and x
must be mapPlot
for general information on plotting maps,
including other functions.library(oce)
## Arctic Ocean
data(coastlineWorld)
latlim <- 90 + 25 * c(-1, 1)
lonlim <- c(-130, -50)
orientation <- c(90, -90, 0)
proj <- "stereographic"
fill <- "lightgray"
mapPlot(coastlineWorld, latitudelim=latlim, longitudelim=lonlim,
proj=proj, orientation=orientation,
axes=FALSE, fill=fill)
mapScalebar()
Run the code above in your browser using DataLab