lines.sirspline: lines method for sirspline-object

View source: R/S3_definitions.R

lines.sirsplineR Documentation

lines method for sirspline-object

Description

Plot SIR spline lines with R base graphics

Usage

## S3 method for class 'sirspline'
lines(x, conf.int = TRUE, print.levels = NA, select.spline, ...)

Arguments

x

an object returned by function sirspline

conf.int

logical; default TRUE draws also the 95 confidence intervals

print.levels

name(s) to be plotted. Default plots all levels.

select.spline

select which spline variable (a number or a name) is plotted.

...

arguments passed on to lines()

Details

In lines.sirspline most of graphical parameters is user adjustable. Desired spline variable can be selected with select.spline and only one can be plotted at a time. The spline variable can include several levels, e.g. gender (these are the levels of print from sirspline). All levels are printed by default, but a specific level can be selected using argument print.levels. Printing the levels separately enables e.g. to give different colours for each level.

Value

Always returns 'NULL' invisibly. This function is called for its side effects.

Author(s)

Matti Rantanen

See Also

Other sir functions: plot.sirspline(), sir_exp(), sir_ratio(), sirspline(), sir()


WetRobot/popEpi documentation built on Aug. 29, 2023, 3:53 a.m.