plot
method for sirspline-objectPlot SIR splines using R base graphics.
# S3 method for sirspline
plot(x, conf.int = TRUE, abline = TRUE, log = FALSE, type, ylab, xlab, ...)
Always returns `NULL` invisibly. This function is called for its side effects.
an object returned by function sirspline
logical; default TRUE draws also the 95 confidence intervals
logical; draws a reference line where SIR = 1
logical; default FALSE. Should the y-axis be in log scale
select type = 'n'
to plot only figure frames
overwrites default y-axis label; can be a vector if multiple splines fitted
overwrites default x-axis label; can be a vector if multiple splines fitted
arguments passed on to plot()
Matti Rantanen
In plot.sirspline
almost every graphical parameter are user
adjustable, such as ylim
, xlim
.
plot.sirsplines
calls lines.splines
to add lines.
The plot axis without lines can be plotted using option type = 'n'
.
On top of the frame it's then possible to add a grid
,
abline
or text before plotting the lines (see: sirspline
).
Other sir functions:
lines.sirspline()
,
sir()
,
sir_exp()
,
sir_ratio()
,
sirspline()