Plot one or more columns of numeric values as the top edges of polygons instead of lines.
stackpoly(
x,
y,
main = "",
xlab = "",
ylab = "",
xat = NA,
xaxlab = NA,
xlim = NA,
ylim = NA,
lty = 1,
border = NA,
col = NA,
axis4 = F,
x.hash = NULL,
density = 20,
...
)
A numeric data frame or matrix with the 'x' values. If 'y' is NULL,
these will become the 'y' values and the 'x' positions will be the integers
from 1 to dim(x)[1]
.
The 'y' values.
The title for the plot.
x axis labels for the plot.
y axis labels for the plot.
Where to put the optional xaxlabs.
Optional labels for the x positions.
Optional x limits.
Optional y limits.
Line type for the polygon borders.
Color for the polygon borders.
Color to fill the polygons. If NULL, 'rainbow' will be called to generate the colors. If NA, the polygons will not be filled.
option to add an axis on the right hand side.
values from x for which the bars have hash marks instead of solid fill
density value for hashed areas
Additional arguments passed to 'plot'.