plot_chamber_trace: Plot a line graph of a lower-body negative pressure trial.

Description Usage Arguments Details Value

View source: R/plot_chamber_trace.R

Description

Visualize the change in a hemodynamic or sympathetic nervous system variable that is specified in the output of run_chamber.

Usage

1
2
3
4
5
6
7
plot_chamber_trace(
  data,
  features = NULL,
  outcome = "delta",
  palette = "Greys",
  combine_plots = T
)

Arguments

data

a data frame of lower-body negative pressure data obtained from run_chamber.

features

the features to plot. A separate plot will be provided for each feature. The feature must be present as a column name of data.

outcome

the type of data to show. Please select from raw or delta. Defaults to delta.

palette

the color palette used to visualize the trace for each variable type. Can be provided either a string specifying a ColorBrewer (see scale_color_brewer) or viridis (see scale_color_viridis) color palette, or a vector of colors that will be provided to scale_color_manual

combine_plots

optionally, combine the plots into a single object. Please note that this will prevent users from adding ggplot layers. Defaults to TRUE.

Details

The following color maps can be specified using the palette argument:

  1. viridis color scales: magma, inferno, plasma, viridis, or cividis (the default)

  2. sequential ColorBrewer scales: BuGn, BuPu, GnBu, Greens, Greys, Oranges, OrRd, PuBu, PuBuGn, PuRd, Purples, RdPu, Reds, YlGn, YlGnBu, YlOrBr, or YlOrRd

  3. diverging ColorBrewer scales: BrBG, PiYG, PRGn, PuOr, RdBu, RdGy, RdYlBu, RdYlGn, or Spectral

  4. a vector of colors that will be passed into scale_color_manual

Value

a ggplot object.


neurorestore/Aima documentation built on Dec. 22, 2021, 1:14 a.m.