Stack plot functions for Lattice.
1 2 3 4 5 6 7 8 9 10
stackPlot generates a stack plot using the lattice framework.
panel.stackPlot handles the appearance of triangle plot
stackPlot returns trellis objects, much like
lattice plot functions.
panel.stackPlot is intended for use
trianglePlot function call.
This is an in-development plot, and 'best handling' strategies have not been decided for several elements. So, future versions of these functions may differ significantly from the current version.
x may include conditioning in the form
y ~ x | cond. However, exact handling is has not been defined, so may
subject to change.
To generate the stacks,
y values by applying
y - min(y) to each layer and then stacks them. It also generates a
y0 of asociated baselines. This is then used in
x = c(x, rev(x)),
y = c(y, rev(y0)) with
panel.polygon to generate the stack layers.
Code currently in revision. Please handle with care.
These function makes extensive use of code developed by others.
As elsewhere, the use of
lattice is also gratefully acknowledged:
lattice: Sarkar, Deepayan (2008). Lattice: Multivariate Data Visualization with R. Springer, New York. ISBN 978-0-387-75968-5
In other packages:
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.