Description Usage Arguments Details
Function to create or add to a bar plot.
1 2 3 4 |
y |
- matrix of values for bars (group elements as rows, series as columns) |
x |
- x coordinate for bars (groups) (optional) |
w |
- bar (group) width (or widths, if a vector) (optional) |
df |
- dataframe (optional way to specify x, y) |
xCol |
- column name in df to use as x |
yCol |
- vector of column names to use as y |
xloc |
- type of x location specified by x."L" - left cutpoint, "C" - center point, "R" - right cutpoint |
overplot |
- TRUE to plot bars on last graph |
stack |
- TRUE to stack bars |
barclr |
- vector of bar colors by group |
ymin |
- min y to plot |
plotLegend |
- TRUE/FALSE flag to plot legend |
leg.loc |
- location for legend (e.g., "topright") |
leg.text |
- text labels for legend |
bar |
width - scale (in percent) to use for bar widths |
groupwidths |
- scale (in percent) to use for group widths |
Uses functions
wtsUtilities::mod(...)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.