powered by
Reverses the sense of either or both the x and y axes.
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, ...)
Vector of x-coordinates of the data to be plotted.
Vector of y-coordinates of the data to be plotted.
Logical scalar; should the sense of the x-axis be reversed?
Logical scalar; should the sense of the y-axis be reversed?
The side of the plot on which the x-axis labels should go.
The side of the plot on which the y-axis labels should go.
Character string for labelling the x-axis.
Character string for labelling the y-axis.
Single letter indicating the type of box to be drawn around the plot. See par for the possible letters and their meaning.
Other arguments to be passed to plot.
nil
plot, box, par
# NOT RUN { x <- runif(20) y <- runif(20) revaxis(x,y,yside=4) # }
Run the code above in your browser using DataLab