present: Present elevate models

View source: R/present.R

presentR Documentation

Present elevate models

Description

Plot training and testing performance boxplots of multiple 'rtModCV“ objects created by train_cv using dplot3_box

Usage

present(
  ...,
  mod.names = NULL,
  which.repeat = 1,
  metric = NULL,
  plot.train = TRUE,
  plot.test = TRUE,
  boxpoints = "all",
  annotate_meansd = TRUE,
  main = NULL,
  ylim = NULL,
  htest = "none",
  htest.annotate.y = NULL,
  col = NULL,
  theme = rtTheme,
  margin = list(b = 65, l = 100, t = 60, r = 18, pad = 0),
  subplot.margin = 0.0666,
  filename = NULL,
  file.width = 500,
  file.height = 550,
  file.scale = 1
)

Arguments

...

rtModCV objects created with train_cv

mod.names

Character: Names of models being plotted.

which.repeat

Integer: which rtModCV repeat to plot.

metric

Character: which metric to plot.

plot.train

Logical: If TRUE, plot training performance.

plot.test

Logical: If TRUE, plot testing performance.

boxpoints

Character or FALSE: "all", "suspectedoutliers", "outliers" See https://plotly.com/r/box-plots/#choosing-the-algorithm-for-computing-quartiles

annotate_meansd

Logical: If TRUE, annotate with mean (SD) of each box

main

Character: Plot title.

ylim

Numeric vector: y-axis limits

htest

Character: e.g. "t.test", "wilcox.test" to compare each box to the first box. If grouped, compare within each group to the first box. If p-value of test is less than htest.thresh, add asterisk above/ to the side of each box

htest.annotate.y

Numeric: y-axis paper coordinate for htest annotation

col

Color, vector: Color for boxes. If NULL, which will draw colors from palette

theme

Character: Theme to use: Run themes() for available themes

margin

Named list: plot margins. Default = list(b = 65, l = 65, t = 50, r = 10, pad = 0)

subplot.margin

Numeric: margin between subplots.

filename

Character: Path to file to save static plot.

file.width

Integer: File width in pixels for when filename is set.

file.height

Integer: File height in pixels for when filename is set.

file.scale

Numeric: If saving to file, scale plot by this number

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Oct. 28, 2024, 6:30 a.m.