bar.interaction: Two-way Interaction Plot with 95% CI

Usage Arguments Details Examples

View source: R/bar.interaction.R

Usage

1
bar.interaction(x.factor, group, response, bartest = T)

Arguments

x.factor

A numeric or factorial vector for the X axis

group

Another factor whose levels will form the traces

response

a numeric variable giving the response

bartest

logical. Should the bartest (with statistics) be included in the plot?

Details

The legend include group and the size of dots proportional to the number of observations

Examples

1
2
3
4
5
6
7
8
9
bar.interaction(x.factor = ToothGrowth$dose,
                group = ToothGrowth$supp,
                response = ToothGrowth$len,
                bartest = F)

bar.interaction(x.factor = ToothGrowth$dose,
                group = ToothGrowth$supp,
                response = ToothGrowth$len,
                bartest = T)

alemiani/explora documentation built on May 28, 2019, 4:54 p.m.