| draw.horizons {SoPhy} | R Documentation |
The function draws a profile, i.e. a sequence of horizons, by coloured areas or by boundary lines.
draw.horizons(h, areas=TRUE,
col.hor=c('#000000', '#996600', '#660000', '#CC9933',
'#666600', '#CCCC99', '#CCCCCC', '#990000',
'#FFCC00', '#FFFFCC', rep('white', h$max.horizons)),
border.col=NULL, picture=NULL,
lwd = 2, quadratic=TRUE, all=TRUE, cex = 1, cex.leg = 1
)
h |
a list of the same format as the output
of xswms2d |
areas |
logical. If TRUE the horizons are plotted in
different colours. If FALSE only the boundary lines are
plotted. |
col.hor |
the colours of the horizons or the boundary lines; the vector must have 20 entries. The first ten give the colours of the horizons, the second ten give the colour of the stones that belong to a certain horizon (here the position of the pixel not the center of the stone counts). |
border.col |
NULL or any vector of colours. If not
NULL the boundary pixels are plotted in the colour of the
respective horizon. |
picture |
array of three dimensions where the third
dimension has 3 or 4 components (RGB or RGBA coding).
The pictures is given as a background figure if areas=FALSE and
all=TRUE.
|
lwd |
postive number, only used if area=FALSE. Then it
gives the width of the boundary lines. |
quadratic |
logical. If TRUE the figure matrix is enlarged and
filled with NA symmetrically in x-direction or on the bottom in
y-direction such the matrix (and the figure) become quadratic. |
all |
If FALSE no axis and no background picture are
plotted. |
cex |
type size for the axes and the labels, see
par |
cex.leg |
type size for the legend |
invisible list of xlim and ylim of the figure.
Martin Schlather, schlath@hsu-hh.de http://www.unibw-hamburg.de/WWEB/math/schlath/schlather.html
modify.horizons,
SoPhy,
xswms2d
## see modify.horizons for an example