interaction-plot.Rd
Plots the mean of the response for two-way combinations of factors, thereby illustrating possible interactions.
interaction_plot(.data, .formula, interval = "conf.int")
A data frame
A formula of the form y ~ x1 + x2
Either conf.int
, boxplot
or none
This is a recent addition to the package and is subject to change.
ToothGrowth |> interaction_plot(len ~ dose + supp)
ToothGrowth |> interaction_plot(len ~ dose + supp, interval="conf.int")
ToothGrowth |> interaction_plot(len ~ dose + supp, interval="boxplot")
ToothGrowth |> interaction_plot(len ~ dose + supp, interval="none")