plot_fit: Plot management quantities for one or more fits

Description Usage Arguments Value

Description

Plot management quantities for one or more fits

Usage

1
plot_fit(..., names = NULL, lims = c(0, 3))

Arguments

...

A series of fits as returned by run.SIR

names

An optional character string with length equal to the number of fits, used to identify fits on the plot.

lims

The limits for metrics. A single range can be passed and used for all 4 metrics, or a list of ranges. NULL specifies to determine the ranges for each metric from the data.

fit

A returned list from run.SIR

plot

Boolean for whether to print the plot.

Value

Functions using base plots return nothing, but those using ggplot2 return an invisible ggplot object which can then be used to print or save as normally done. In all cases if 'plot=TRUE' then a plot is created.


colemonnahan/sraplus documentation built on May 14, 2019, 3:10 a.m.