icc.simulation.scatter.plot: Creates a scatter plot of ICC vs one or two variables, ICC on...

Description Usage Arguments Value

Description

Creates a scatter plot of ICC vs one or two variables, ICC on y-axis. Chooses automatically between a 3D plotly and 2D ggplot. If only one or two variables in the parameters has multiple levels across scenarios, these will be automatically detected.

Usage

1
2
3
4
5
6
icc.simulation.scatter.plot(
  icc.dt,
  vars.to.plot = NULL,
  plot.mean = T,
  cols.to.ignore = c("iteration", "icc")
)

Arguments

icc.dt

A data.table with the parameters of the various simulations and ICC.

vars.to.plot

String name of the variable that will be on the x-axis. Will autodetect if NULL, but that will fail if there are more than three potential variables to plot ICC against. (Default: NULL)

plot.mean

If true, plot the mean value at each point of var.to.plot, otherwise plot all values individually.

cols.to.ignore

Columns that will be ignored by detection of vars.to.plot (Default: c('iteration', 'icc'))

Value

A scatter ggplot


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.