create_emmeans_profileplot: Creates the profile plots from the estimated marginal means

Description Usage Arguments Value Examples

View source: R/plot_functions.R

Description

Creates the profile plots from the estimated marginal means

Usage

1
2
create_emmeans_profileplot(data_plot, x_variable = "TASK_GRA",
  y_variable = "emmean", group_variable = "TASK")

Arguments

data_plot

a data_frame containing the estimated marginal means for each level of x_variable and group_variable

x_variable

column name in data_plot that contains the factor for x-axis, e.g. "TASK_GRA"

y_variable

column name in data_plot that contains the estimated marginal means

group_variable

column name in data_plot that contains the factor for which seperate profile plots will be shown for each level

Value

a ggplot object containing the profile plot

Examples

1
2
3
emmeans_CORRECTNESS <- reproduce_emmeans_CORRECTNESS()
create_emmeans_profileplot(data_plot= emmeans_CORRECTNESS,
x_variable="TASK_GRA", y_variable="emmean", group_variable="TASK")

karacitir/reproducerTaskGra documentation built on May 6, 2019, 4:32 p.m.