plot_summary_bars: Plot a bar graph of summary statistics Visualize the results...

Description Usage Arguments Value

View source: R/plot_summary_bars.R

Description

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

Usage

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

Arguments

data

a summarised data frame of a baseline or lower-body negative pressure assessment obtained from analyze_baseline or analyze_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 delta or delta_min or delta_max. 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.

Value

a ggplot object.


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