Description Usage Arguments Value Examples
View source: R/4419_functions.r
Produces a barplot of summary statistics.
1 | barplotStats(x, y, data, stat="sum", includeN=FALSE, ...)
|
x |
Character string giving the name of the grouping variable. |
y |
Character string giving the name of the numeric variable to be summarized. |
data |
Data frame in which |
stat |
A string given the statistic that will be used to summarize the data. |
includeN |
Logical indicating whether the number of observations in the group should be appended to the variable name for plotting purposes. |
... |
other arguments that will be passed down to |
A plot
1 2 | data(alberta)
barplotStats("k6group", "k3c", alberta, stat="mean")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.