| 1 |
\name{degAxis} |
| 2 |
\alias{degAxis} |
| 3 |
\title{ axis with degrees } |
| 4 |
\description{ |
| 5 |
draw axes on a plot using degree symbols in numbers |
| 6 |
} |
| 7 |
\usage{ |
| 8 |
degAxis(side, at, labels, ...) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{side}{integer; see \link{axis}} |
| 12 |
\item{at}{numeric; if missing, \link{axTicks} is called for nice values; see \link{axis}} |
| 13 |
\item{labels}{character; if omitted labels are constructed with degree symbols, ending |
| 14 |
in N/S/E/W; in case of negative degrees, sign is reversed and S or W is added; see \link{axis}} |
| 15 |
\item{...}{passed to the actual \link{axis} call} |
| 16 |
} |
| 17 |
\value{ axis is plotted on current graph } |
| 18 |
\note{decimal degrees are used if variation is small, instead of minutes and seconds} |
| 19 |
\examples{ |
| 20 |
xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1) |
| 21 |
plot(SpatialPoints(xy, proj4string = CRS("+proj=longlat +ellps=WGS84")),xlim=c(-1,1),ylim=c(-1,1)) |
| 22 |
degAxis(1) |
| 23 |
degAxis(2, at = c(-1,-0.5,0,0.5,1)) |
| 24 |
# |
| 25 |
} |
| 26 |
\keyword{dplot} |