Skip to contents

plot_common_scale() rescales a list of plots to have a common scale.

get_plot_opts() returns generic plotting options.

patch_plots() patches plots using patchwork package.

Usage

calmr_model_plot(data, type, model, ...)

plot_common_scale(plots)

get_plot_opts(common_scale = TRUE)

patch_plots(plots, selection = names(plots), plot_options = get_plot_opts())

Arguments

data

A data.table containing aggregated data from a CalmrExperiment

type

A character specifying the type of plot.

model

A character specifying the model.

...

Other parameters passed to plotting functions.

plots

A list of (named) plots, as returned by plot() or calmr_model_plot()

common_scale

Logical specifying whether to have plots in a common scale.

selection

A character or numeric vector determining the plots to patch

plot_options

A list of plot options as returned by get_plot_opts()

Value

A 'ggplot' object.

plot_common_scale() returns a list of plots.

get_plot_opts() returns a list.

patch_plots() returns a patchwork object.

Note

You should probably be getting plots via the plot() method for CalmrExperiment.