plot_means: Plot the Two-Way Interaction Mean Patterns to be Simulated

Description Usage Arguments Value Examples

View source: R/plot_means.R

Description

Plot to see what pattern of means look like before one puts them into the simulation. This allows a user to make sure what they input to the simulation function matches the pattern of results they expect to see.

Usage

1
2
plot_means(a1b1, a1b2, a2b1, a2b2, a = NULL, a1 = NULL, a2 = NULL,
  b = NULL, b1 = NULL, b2 = NULL)

Arguments

a1b1

Mean in cell A1, B1

a1b2

Mean in cell A1, B2

a2b1

Mean in cell A2, B1

a2b2

Mean in cell A2, B2

a

String. Name of the factor (variable) representing A (x-axis)

a1

String. Name of the first level of Factor A

a2

String. Name of the second level of Factor A

b

String. Name of the factor (variable) representing B (different series/colors)

b1

String. Name of the first level of Factor B

b2

String. Name of the second level of Factor B

Value

A ggplot2 object depicting the mean patterns

Examples

1
2
# imagine d = .5 in condition A and d = .0 in condition B
plot_means(0, .5, 0, 0)

markhwhiteii/twipc documentation built on Nov. 4, 2019, 5:25 p.m.