Skip to contents

Plot model means for box-cox transformed deviation scores as a function of categorical ratings

Usage

plot_model_means_box_cox_cat(
  dat,
  variable,
  predictor_means,
  new_order,
  title,
  lambda,
  back_transform = FALSE
)

Arguments

dat

Data for plotting

variable

Categorical predictor variable to plot

predictor_means

A tibble containing the means and confidence intervals of the predictor variable

new_order

A character vector of the new order of the levels of the categorical predictor

title

A character vector of the plot title

lambda

A length 1 numeric vector of the lambda value used in the box-cox transformation

back_transform

A logical indicating whether to back-transform the box-cox transformed data

Value

A ggplot object