draw.horizons {SoPhy}R Documentation

Draw of the profile of horizons

Description

The function draws a profile, i.e. a sequence of horizons, by coloured areas or by boundary lines.

Usage

 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
               )

Arguments

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

Value

invisible list of xlim and ylim of the figure.

Author(s)

Martin Schlather, martin.schlather@math.uni-goettingen.de http://www.stochastik.math.uni-goettingen.de/institute

See Also

modify.horizons, SoPhy, xswms2d

Examples

   ## see  modify.horizons  for an example

[Package SoPhy version 1.0.34 Index]