Learn R Programming

uwo4419 (version 0.3.0)

plotCIgroup: Plot Confidence Intervals by Groups

Description

Plot confidence intervals by group.

Usage

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

Run this code
# NOT RUN {
data(alberta)
alberta$k6group <- factor(alberta$k6group,
   labels = attr(attr(alberta$k6group, "labels"), "names"))
plotCIgroup(k3c ~ k6group, data=alberta)
# }

Run the code above in your browser using DataLab