Learn R Programming

hrf (version 0.1.3)

plot_design: 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)

Value

A ggplot

A ggplot

A ggplot

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.