plot_anova_sst: Create a graphical representation of the total sum of squares...

View source: R/plot_anova_sst.R

plot_anova_sstR Documentation

Create a graphical representation of the total sum of squares in an ANOVA style analysis.

Description

Create a graphical representation of the total sum of squares in an ANOVA style analysis.

Usage

plot_anova_sst(
  dat = NULL,
  seg_col = gray(0.75),
  seg_lwd = 1,
  group_mean_col = "black",
  group_mean_lwd = 2,
  grand_mean_col = "black",
  grand_mean_lwd = 2,
  show_label = TRUE,
  label_fmt = "SST = %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

group_mean_col

line color for the vertical lines

group_mean_lwd

line width for the group mean colors

grand_mean_col

color for grand mean horizontal line

grand_mean_lwd

line width for the grand mean horizontal line

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

Value

a data.table with columns for TODO


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