ezbar_2iv: Visualisation of a two-way ANOVA using bar plots.

Description Usage Arguments Value Examples

View source: R/ezbar_2iv.R

Description

This function can be used to visualise a factorial experiment with two independent variables. It displays the cell means and corresponding standard errors as bar plots.

Usage

1
ezbar_2iv(afex_fit, factors, legend.pos = c(0.9, 0.9))

Arguments

afex_fit

a fitted afex object.

factors

a character vector specifying the three independent variables.

legend.pos

numeric vector specifying the legend position. c(0,0) is the bottom-left corner. c(1,1) the top-right corner. Default is c(0.9,0.9).

Value

a ggplot object.

Examples

1
2
3
4
library(afexplot)
data(obk.long)
fit = aov_ez(dv="value", id="id", between="gender", within="phase",data=obk.long)
ezbar_2iv(afex_fit=fit, factors=c("gender","phase"))

mertensu/afexplot documentation built on June 21, 2017, 2:17 a.m.