File: degaxis.Rd

package info (click to toggle)
r-cran-sp 1:0.9-66-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,696 kB
  • ctags: 123
  • sloc: ansic: 1,475; sh: 6; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{degAxis}
\alias{degAxis}
\title{ axis with degrees }
\description{
draw axes on a plot using degree symbols in numbers
}
\usage{
degAxis(side, at, labels, ...)
}
\arguments{
\item{side}{integer; see \link{axis}}
\item{at}{numeric; if missing, \link{axTicks} is called for nice values; see \link{axis}}
\item{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 \link{axis}}
\item{...}{passed to the actual \link{axis} call}
}
\value{ axis is plotted on current graph }
\note{decimal degrees are used if variation is small, instead of minutes and seconds}
\examples{
xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1)
plot(SpatialPoints(xy, proj4string = CRS("+proj=longlat")),xlim=c(-1,1),ylim=c(-1,1))
degAxis(1)
degAxis(2, at = c(-1,-0.5,0,0.5,1))
#
}
\keyword{dplot}