plot_one_way_model: Plot a single-predictor linear model highlighting relevant...

View source: R/plot_one_way_model.R

plot_one_way_modelR Documentation

Plot a single-predictor linear model highlighting relevant components

Description

Plot a single-predictor linear model highlighting relevant components

Usage

plot_one_way_model(
  sim_dat,
  pch_pt = 21,
  cex_pt = 3.1,
  pt_col = adjustcolor("steelblue", 0.3),
  pt_border = 1,
  plot_step = TRUE,
  step_col = "red",
  step_lwd = 0.8,
  step_min = 0.3,
  step_max = 0.7,
  plot_h1 = TRUE,
  h1_col = "darkblue",
  h1_lty = 1,
  h1_lwd = 1,
  plot_h0 = TRUE,
  h0_col = "darkblue",
  h0_lwd = 1,
  h0_lty = 2,
  th = theme_minimal()
)

Arguments

pch_pt

= 21

cex_pt

= 3.1

pt_col

= adjustcolor("steelblue", 0.3)

pt_border

= 1

plot_step

whether to plot the step representing the rise/run components of the slope

step_col

colour of the slope step

step_lwd

width of the step line

step_min

relative x-position of the start of the step

step_max

relative x-position of the end of the step'

plot_h1

Whether to plot the regression line

h1_col

color for the regression line

h1_lty

line type for regression line

h1_lwd

width for the regression line

plot_h0

whether to plot the null hypothesis line

h0_col

color for the null hypothesis line

h0_lwd

line width for the null hypothesis line

h0_lty

line type for the null hypothesis line

th

overall plot theme


michaelfrancenelson/mfn.teaching.utils documentation built on Oct. 7, 2022, 1:13 a.m.