Learn R Programming

oce (version 0.9-19)

mapAxis: Add Axis Labels to an Existing Map

Description

Plot axis labels on an existing map.

Usage

mapAxis(side = 1:2, longitude = NULL, latitude = NULL, tick = TRUE, line = NA, pos = NA, outer = FALSE, font = NA, lty = "solid", lwd = 1, lwd.ticks = lwd, col = NULL, col.ticks = NULL, hadj = NA, padj = NA, tcl = -0.3, debug = getOption("oceDebug"))

Arguments

side
the side at which labels are to be drawn. If not provided, sides 1 and 2 will be used (i.e. bottom and left-hand sides).
longitude
vector of longitudes to indicate. If not provided, and if a grid has already been drawn, then the labels will be at the interesections of the grid lines with the plotting box.
latitude
vector of latitudes to indicate. If not provided, and if a grid has already been drawn, then the labels will be at the interesections of the grid lines with the plotting box.
tick
an argument that is transmitted to codeinkaxis.
line
an argument that is transmitted to codeinkaxis.
pos
an argument that is transmitted to codeinkaxis.
outer
an argument that is transmitted to codeinkaxis.
font
an argument that is transmitted to codeinkaxis.
lty
an argument that is transmitted to codeinkaxis.
lwd
an argument that is transmitted to codeinkaxis.
lwd.ticks
an argument that is transmitted to codeinkaxis.
col
an argument that is transmitted to codeinkaxis.
col.ticks
an argument that is transmitted to codeinkaxis.
hadj
an argument that is transmitted to codeinkaxis.
padj
an argument that is transmitted to codeinkaxis.
tcl
an argument that is transmitted to codeinkaxis.
debug
a flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more.

Details

This function is still in development, and the argument list as well as the action taken are both subject to change, hence the brevity of this help page.

Note that if a grid line crosses the axis twice, only one label will be drawn.

See Also

A map must first have been created with mapPlot.

Other functions related to maps: lonlat2map, lonlat2utm, map2lonlat, mapArrows, mapContour, mapDirectionField, mapGrid, mapImage, mapLines, mapLocator, mapLongitudeLatitudeXY, mapMeridians, mapPlot, mapPoints, mapPolygon, mapScalebar, mapText, mapTissot, mapZones, shiftLongitude, utm2lonlat

Examples

Run this code
## Not run: 
# library(oce)
# data(coastlineWorld)
# par(mar=c(2, 2, 3, 1))
# lonlim <- c(-180, 180)
# latlim <- c(60, 120)
# mapPlot(coastlineWorld, projection="+proj=stere +lat_0=90",
#         longitudelim=lonlim, latitudelim=latlim,
#         grid=FALSE)
# mapGrid(15, 15, polarCircle=1/2)
# mapAxis()
# ## End(Not run)

Run the code above in your browser using DataLab