barplotStats: Barplot of Summary Statistics

Description Usage Arguments Value Examples

View source: R/4419_functions.r

Description

Produces a barplot of summary statistics.

Usage

1
barplotStats(x, y, data, stat="sum", includeN=FALSE, ...)

Arguments

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 x and y can be found.

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 stat.

Value

A plot

Examples

1
2
data(alberta)
barplotStats("k6group", "k3c", alberta, stat="mean")

davidaarmstrong/uwo4419 documentation built on Sept. 22, 2020, 3:32 p.m.