Learn R Programming

analogue (version 0.10-0)

panel.Stratiplot: Panel function for stratigraphic diagrams

Description

A Lattice panel function for drawing individuals panels on stratigraphic diagrams using a range of plot types commonly used within palaeoecology.

Usage

panel.Stratiplot(x, y,
                 type = "l",
                 col,
                 pch = plot.symbol$pch,
                 cex = plot.symbol$cex,
                 col.line = plot.line$col,
                 col.symbol = plot.symbol$col,
                 col.refline = ref.line$col,
                 col.smooth = "red",
                 col.poly = plot.line$col,
                 lty = plot.line$lty,
                 lwd = plot.line$lwd,
                 lty.smooth = plot.line$lty,
                 lwd.smooth = 2,
                 lwd.h = 3,
                 fill = plot.symbol$fill,
                 zones = NULL,
                 col.zones = plot.line$col,
                 lty.zones = plot.line$lty,
                 lwd.zones = plot.line$lwd,
                 gridh = -1, gridv = -1,
                 ...)

Arguments

x, y
variables defining the contents of the panel.
type
character vector consisting of one or more of the following: "l", "p", "o", "b", "h", "g", "smooth", and "poly". It type has more
col, col.line, col.symbol, col.poly, col.refline, col.smooth, col.zones
colour parameters. For all but col.smooth, default colours are obtained from plot.symbol and plot.line using trellis.par.get. col.refl
pch, cex, lty, lwd, fill
other graphical parameters, defaults for which are obtained from plot.symbol and plot.line using trellis.par.get.
lty.smooth
line type for the loess smoother. The default is obtained from plot.line using trellis.par.get.
lwd.smooth,lwd.h
The line width for the loess smoother and histogram-like bars respectively.
zones
numeric; vector of zone boundary positions on scale of the depth/time (y-)axis.
lty.zones, lwd.zones
line type and width for the zone markers. The defaults are obtained from plot.line.
gridh, gridv
numeric arguments corresponding to h and v of panel.grid, which control the number of grid lines drawn.
...
extra arguments passed on to the underlying panel functions; panel.points, panel.lines,

Details

Creates stratigraphic scatter plots of x and y, with various modifications possible via the type argument.

Zones can be drawn on the panels by supplying the numeric vector of zone boundaries as argument zones. The panel function will then draw horizontal lines across the panels at the desired y-axis locations. Note that the panel function does not attempt to identify the zone boundaries automatically; these must be determined via a chronological (constrained) cluster analysis function or similar.

Note that all the arguments controlling the display can be supplied directly to a high-level call of the function Stratiplot.

See Also

Stratiplot, panel.Loess, panel.xyplot.