hayes_plot_model_1: Plot interactions generated using Process Hayes Model 1.

View source: R/hayes_plot_model_1.R

hayes_plot_model_1R Documentation

Plot interactions generated using Process Hayes Model 1.

Description

A function to visualize the interactions provided by a the Process Hayes macro. Only works with hayesData objects, which are the data class produced by 'read_hayes_plot_data'.

Usage

hayes_plot_model_1(
  hayes_data,
  title = NULL,
  xlab = NULL,
  ylab = NULL,
  legend_title = NULL,
  SD = F,
  colorblind = F,
  APA = F
)

Arguments

hayes_data

An object of class HayesData, containing the relevant information extracted from the Process Hayes output

title

Title of the plot

xlab

X axis label

ylab

Y axis label

legend_title

Title above the legend

SD

whether the labels of the legend should be replaced with +/-1 SD

colorblind

Whether colorblind-safe colors should be used. If true, uses colors from the colorblind_1 palette in this package.

APA

Whether black and white colors should be used.

Value

A GGPlot object.


daaawit/ABOHiwi documentation built on March 23, 2022, 3:27 p.m.