powered by
Produces a barplot of summary statistics.
barplotStats(x, y, data, stat="sum", includeN=FALSE, ...)
Character string giving the name of the grouping variable.
Character string giving the name of the numeric variable to be summarized.
Data frame in which x and y can be found.
x
y
A string given the statistic that will be used to summarize the data.
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 stat.
stat
A plot
# NOT RUN { data(alberta) barplotStats("k6group", "k3c", alberta, stat="mean") # }
Run the code above in your browser using DataLab