View source: R/S3_definitions.R
lines.sirspline | R Documentation |
Plot SIR spline lines with R base graphics
## S3 method for class 'sirspline'
lines(x, conf.int = TRUE, print.levels = NA, select.spline, ...)
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() |
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.
Always returns NULL
invisibly.
This function is called for its side effects.
Matti Rantanen
Other sir functions:
plot.sirspline()
,
sir()
,
sir_exp()
,
sir_ratio()
,
sirspline()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.