plotRGB {SoPhy} | R Documentation |
The function plots an RGB array
plotRGB(picture, x=1:dp[1], y=if (reverse) dp[2]:1 else 1:dp[2], reverse=TRUE, cex.axis=1, ...)
picture |
three dimensional array where the third dimension must have length 3 or 4; the forth component is ignored if there is any |
x |
x-coordinates; the length must match the length of the first
dimension of picture |
y |
y-coordinates; the length must match the length of the first
dimension of picture ; see details |
reverse |
logical; see details |
cex.axis |
graphical parameter, see par |
... |
additional graphical parameters for image |
reverse=TRUE
is for the plot of soil profiles, where the
numbering of the y-axis start at the top and is counted positively
downwards.
reverse=FALSE
The usual presentation of the vertical axis.
The functions checks whether y
is in decreasing or increasing
order, and plots the y axis accordingly.
NULL
Martin Schlather, martin.schlather@math.uni-goettingen.de http://www.stochastik.math.uni-goettingen.de/institute
fig <- read.picture(paste(system.file(package='SoPhy'), 'tracer', 'K06', sep="/")) plotRGB(fig)