scrub_plot: '"scrub"' plot sub-function

Description Usage Arguments Value

View source: R/plot.R

Description

Plot outlyingness measure(s) with the corresponding threshold(s). Requires the cowplot and ggplot2 packages

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
scrub_plot(
  meas,
  cut = NULL,
  flag_intersect = FALSE,
  colors = NULL,
  log_y = FALSE,
  geom = "point",
  ylim_min = 0,
  ylim_max = max(meas$measure),
  ...
)

Arguments

meas

A T by m numeric data.frame with each column being the timecourse for an outlyingness measure. The names of the columns will be used to label the plot.

cut

A length m numeric vector with each value being the cutoff for an outlyingness measure (each column in meas).

flag_intersect

Only flag timepoints at which all measures are outliers? Default: FALSE.

colors

A length m character vector giving the colors of each measure (each column in meas)

log_y

Use log scale for y-axis? Default: FALSE

geom

"point" (default) or "line"

ylim_min, ylim_max

The range of the y-axis.

...

Additional arguments to ggplot: main, sub, xlab, ...

Value

A ggplot


neuroconductor/fMRIscrub documentation built on Dec. 22, 2021, 1:10 a.m.