Description Usage Arguments Value Author(s) Examples
Draw a stacked barchart for a general overview of items from a dataset.
| 1 | stackedBars(type = position_fill, n.col = 15, palette = "Blues", direction = 1)
 | 
| dframe | data.frame to be analyzed, typically psychological. | 
| type | Choose between relative (type = "position_fill") and absolute (type = "position_stack") frequencies. | 
| pattern | optional, selects those items which match the specified pattern. May also be column-index-values. | 
| n.col | specify the maximum number of columns to be drawn. | 
| palette | specify a color-palette from RColorBrewer. Advised to use bidirectional (e.g. "RdBu") and categorical (e.g. "Set3") color-schemes if apropriate. | 
| direction | set to -1 to reverse the color-scheme. | 
Plots a stacked barchart with a maximum of 15 items at the y-axis and relative or absolute frequencies on x-axis.
Joschka Cremers
| 1 2 3 4 5 | #Load big5-data from Explore-package
data("big5")
#Draw only Extraversion-items in graph
stackedBars(big5, pattern = "^E", palette = "YlGn")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.