ezline_2iv: Visualisation of a two-way ANOVA using line charts.

Description Usage Arguments Value Examples

View source: R/ezline_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 in a line chart.

Usage

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

Arguments

afex_fit

a fitted afex object.

factors

a character vector specifying the two independent variables.

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)
ezline_2iv(afex_fit=fit, factors=c("gender","phase"))

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