plotCIgroup: Plot Confidence Intervals by Groups

Description Usage Arguments Value Examples

View source: R/4419_functions.r

Description

Plot confidence intervals by group.

Usage

1
plotCIgroup(form, data, includeOverall = TRUE, ...)

Arguments

form

Formula giving dependent variable and grouping variable.

data

Data used to calculate confidence intervals

includeOverall

Logical indicating whether the overall mean and confidence interval for all observations should be included.

...

Other arguments to be passed down to confidenceInterval.

Value

A ggplot.

Examples

1
2
3
4
data(alberta)
alberta$k6group <- factor(alberta$k6group,
   labels = attr(attr(alberta$k6group, "labels"), "names"))
plotCIgroup(k3c ~ k6group, data=alberta)

uwo4419 documentation built on Oct. 23, 2020, 8:08 p.m.