degaxis.Rd
draw axes on a plot using degree symbols in numbers
degAxis(side, at, labels, ...)
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 |
... | passed to the actual axis call |
axis is plotted on current graph
decimal degrees are used if variation is small, instead of minutes and seconds
xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1) plot(SpatialPoints(xy, proj4string = CRS("+proj=longlat +ellps=WGS84")),xlim=c(-1,1),ylim=c(-1,1))#> Warning: Discarded datum Unknown based on WGS84 ellipsoid in CRS definitiondegAxis(1)#