Description Usage Arguments Details Value Author(s) Examples
When showing e.g., age or education distributions for two groups, it is convenient to plot them back to back. bi.bars will do so.
1 |
x |
The data to be drawn |
grp |
a grouping variable. |
horiz |
horizontal (default) or vertical bars |
color |
colors for the two groups – defaults to blue and red |
label |
If specified, labels for the dependent axis |
zero |
If TRUE, subtract the minimum value to make the numbers range from 0 to max -min. This is useful if showing heights |
xlab |
xaxis label if appropriate |
ylab |
y axis label otherwise |
... |
Further parameters to pass to the graphing program |
A trivial, if useful, function to draw back to back histograms/barplots. One for each group.
a graphic
William Revelle
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.