File: revaxis.Rd

package info (click to toggle)
r-cran-plotrix 2.9-3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 960 kB
  • sloc: makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,329 bytes parent folder | download | duplicates (8)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\name{revaxis}
\alias{revaxis}
\title{ Plot with axis direction(s) reversed }
\description{
   Reverses the sense of either or both the \samp{x} and \samp{y} axes.
}
\usage{
revaxis(x, y, xrev=FALSE, yrev=TRUE, xside=if (yrev) 3 else 1,
       yside=if (xrev) 4 else 2, xlab=NULL, ylab=NULL, bty=NULL, ...)

}
\arguments{
   \item{x}{ Vector of \samp{x}-coordinates of the data to be plotted. }
   \item{y}{ Vector of \samp{y}-coordinates of the data to be plotted. }
   \item{xrev}{ Logical scalar; should the sense of the \samp{x}-axis
    be reversed?}
   \item{yrev}{ Logical scalar; should the sense of the \samp{y}-axis
    be reversed?}
   \item{xside}{ The side of the plot on which the \samp{x}-axis labels
   should go.}
   \item{yside}{ The side of the plot on which the \samp{y}-axis labels
   should go.}
   \item{xlab}{ Character string for labelling the \samp{x}-axis. }
   \item{ylab}{ Character string for labelling the \samp{y}-axis. }
   \item{bty}{ Single letter indicating the type of box to be drawn
   around the plot. See \link{par} for the possible letters
   and their meaning.}
   \item{\dots}{ Other arguments to be passed to plot.}
}

\value{ nil }
\author{Rolf Turner}
\seealso{ \link{plot}, \link{box}, \link{par}}

\examples{
x <- runif(20)
y <- runif(20)
revaxis(x,y,yside=4)
}
\keyword{ hplot }