twoway_interaction_plot: Interaction plot using expected marginal means

View source: R/plotting.R

twoway_interaction_plotR Documentation

Interaction plot using expected marginal means

Description

Interaction plot using expected marginal means

Usage

twoway_interaction_plot(model, iv1, iv2, ylab, text_size = 8)

Arguments

model

A model such as afex::aov_car of a two-way interaction.

iv1

One of the two independent variables (variable name must be quoted)

iv2

The other of the two independent variables (variable name must be quoted)

ylab

The y-axis label

text_size

The size of the font in the legend

Value

A patchwork object

Examples

M <- afex::aov_car(nc_erp ~ category + Error(id/change), data = catknowledge)
twoway_interaction_plot(M, 'category', 'change', ylab = 'Nc ERP amplitude')

mark-andrews/isdsr-pkg documentation built on Sept. 13, 2022, 11:47 p.m.