wfplot | R Documentation |
Quick waterfall plot
data is a numeric vector labels are text labels of the same length as data col is either (1) an unamed list of unique colors (2) a named list mapping unique labels to colors
wfplot(
data,
labels = NULL,
names.arg = NULL,
col = NULL,
las = 2,
cex = 1,
leg.pos = NULL,
...
)
data |
length n numeric vector to be drawn and sorted on y axis |
labels |
length n character vector categorical labels of data |
names.arg |
length n character vector, optional, of individual labels to be drawn verticallyon x axis |
col |
optional named character vector mapping unique category labels to colors |
las |
optional integer vector specifying orientation of labels on barplot |
cex |
numeric value specifying size of names.arg data labels |
leg.pos |
NULL |
... |
additional arguments to barplot |
plot
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.