plot_anova_ssb: Create a graphical representation of the between-group sum of...

View source: R/plot_anova_sst.R

plot_anova_ssbR Documentation

Create a graphical representation of the between-group sum of squares in an ANOVA style analysis.

Description

Create a graphical representation of the between-group sum of squares in an ANOVA style analysis.

Usage

plot_anova_ssb(
  dat = NULL,
  seg_col = gray(0.75),
  seg_lwd = 1,
  grand_mean_col = "black",
  grand_mean_lwd = 0.8,
  group_mean_lwd = 2,
  show_label = TRUE,
  label_fmt = "SSB = %0.1f",
  label_cex = 1.3,
  digits = 1,
  pt_cex = 1.5,
  pt_lwd = 0.5,
  pch_1 = 16,
  pch_2 = 1,
  seed = 12345
)

Arguments

dat

data for which to draw. If null, data with 3 groups will be generated

seg_col

color for the vertical line segments

seg_lwd

= width for vertical line segments

grand_mean_col

color for grand mean horizontal line

grand_mean_lwd

line width for the grand mean horizontal line

group_mean_lwd

line width for the group mean colors

show_label

whether or not to print the SS quantity

label_fmt

The text format for the sum of squares label (if )

digits

how many digits to round the SS to?

pt_cex

size of the points

pch_1

plotting character for main point

pch_2

plotting character for border point

seed

random seed to be used if dat is NULL


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