plotStacked
makes a stacked plot where each y
series is plotted on top of each other using filled polygons.
plotStacked(
x,
y,
order.method = "as.is",
ylab = "",
xlab = "",
border = NULL,
lwd = 1,
col = rainbow(length(y[1, ])),
ylim = NULL,
...
)
A vector of values
A matrix of data series (columns) corresponding to x
Method of ordering y plotting order. One of the
following: c("as.is", "max", "first")
. "as.is"
- plot in
order of y column. "max"
- plot in order of when each y series
reaches maximum value. "first"
- plot in order of when each y series
first value > 0.
y-axis labels
x-axis labels
Border colors for polygons corresponding to y columns (will recycle) (see ?polygon for details)
Border line width for polygons corresponding to y columns (will recycle)
Fill colors for polygons corresponding to y columns (will recycle).
y-axis limits. If ylim=NULL
, defaults to c(0, 1.2*max(apply(y,1,sum)
.
Other plot arguments