survRes
object. The function plot.survRes.one
is used as a helper function to plot a univariate time series.## S3 method for class 'survRes':
plot(x, method=x$control$name, disease=x$control$data,
xaxis.years=TRUE,startyear = 2001, firstweek = 1, same.scale=TRUE,\dots)
## S3 method for class 'survRes.one':
plot(x, method=x$control$name, disease=x$control$data,
domany=FALSE,ylim=NULL,xaxis.years=TRUE,startyear = 2001, firstweek = 1,
xlab="time", ylab="No. infected", main=NULL, type="hhs",
lty=c(1,1,2),col=c(1,1,4),
outbreak.symbol = list(pch=3,col=3),alarm.symbol=list(pch=24,col=2),
legend.opts=list(x="top",
legend=c("Infected", "Upperbound", "Alarm", "Outbreak"),
lty=NULL,col=NULL,pch=NULL), ...)
survRes
TRUE
) or univariate (FALSE
) survRes
object. In case of TRUE
no titles are drawn.method
and disease
arguments if not specified otherwiseylim
? Defaults to true
pch
and col
specifying the plot symbolpch
and col
specifying the plot symbollegend
function. If no legend is requested use legend.opts=NULL
. Otherwise, the following arguments are default
[object Object],[objecmatplot
. If e.g. xlab
or main
are provided they overwrite the default values.plot.survRes.one
is intended for internal use. At the moment none of the surveillance methods support multivariate survRes
objects. New versions of the packages currently under development will handle this.data(ha)
ctrl <- list(range = 209:290, b = 2, w = 6, alpha = 0.005)
plot(algo.bayes(aggregate(ha), control = ctrl))
Run the code above in your browser using DataCamp Workspace