Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

degreeAxis

axis with degrees


Description

add an axis with degree labels

Usage

degreeAxis(side, at = NULL, labels, MyMap, ...)

Arguments

side

integer; see axis

at

numeric; if missing, axTicks is called for nice values; see axis

labels

character; if omitted labels are constructed with degree symbols, ending in N/S/E/W; in case of negative degrees, sign is reversed and S or W is added; see axis

MyMap

optional map object to be passed

...

optional arguments to axis

Value

axis is plotted on current graph

Note

decimal degrees are used if variation is small, instead of minutes and seconds

Author(s)

Markus Loecher

Examples

xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1)


plot(xy,xlim=c(-1,1),ylim=c(-1,1))


degreeAxis(1)


degreeAxis(2, at = c(-1,-0.5,0,0.5,1))

RgoogleMaps

Overlays on Static Maps

v1.4.5.3
GPL
Authors
Markus Loecher
Initial release
2020-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.