Learn R Programming

stratigraph (version 0.66)

grid.prop.plot: Plots proportions

Description

Plots a chart of proportional data (or another continuous variable) through time.

Usage

grid.prop.plot(x, y = NULL, increasing.down = FALSE)

Arguments

x
the matrix of data to be plotted as proportions; each column is a variable; each row is a time (or depth).
y
a vector with length equal to the number of rows in x; if NULL, it will be replaced by 1:nrow(x)
increasing.down
FALSE (default) plots times (depths) increasing up from the bottom to the top of the plot.

Value

See Also

plot.strat.column, rangechart

Examples

Run this code

xx <- matrix(sample(1:100), ncol = 4)
grid.prop.plot(xx)
grid.prop.plot(xx, c(1:10, 23, 24:35, 40, 42), increasing.down = FALSE)

Run the code above in your browser using DataLab