plot_design: Plot design matrix

View source: R/plot_design.R

plot_designR Documentation

Plot design matrix

Description

Plot design matrix

Plot design with lineplot

Plot design with imageplot

Usage

plot_design(design, method = c("lineplot", "imageplot"), ...)

plot_design_line(
  design,
  colors = "Set1",
  linetype = "solid",
  linewidth = 0.7,
  alpha = 0.8
)

plot_design_image(design)

Arguments

design

The timepoints by fields design matrix or data.frame.

method

"lineplot" (default) or "imageplot".

...

Additional arguments to plot_design_line or plot_design_image.

colors

The name of a ColorBrewer palette (see RColorBrewer::brewer.pal.info and colorbrewer2.org), the name of a viridisLite palette, or a character vector of colors. Default: "Set1".

linetype, linewidth, alpha

Parameters for ggplot2::geom_line. Defaults: "solid" linetype, 0.7 linewidth and 0.8 alpha. linetype can also be a vector of options with length matching the number of fields in design.

Value

A ggplot

A ggplot

A ggplot


hrf documentation built on April 3, 2025, 10:36 p.m.