plot.survRes {surveillance} | R Documentation |
Plotting of a (multivariate) survRes
object. The function plot.survRes.one
is used as a helper function to plot a univariate time series.
plot.survRes(x, method=x$control$name, disease=x$control$data, xaxis.years=TRUE,startyear = 2001, firstweek = 1, legend=TRUE,same.scale=TRUE,...) plot.survRes.one(x, method=x$control$name, disease=x$control$data, domany=FALSE,ylim=NULL,xaxis.years=TRUE,startyear = 2001, firstweek = 1, legend=TRUE, xlegpos =1/4, ylegpos = 1,...)
x |
Object of class survRes |
method |
Surveillance method to be used in title |
disease |
Name of disease in title |
xaxis.years |
Boolean indicating whether to show a year based x-axis for weekly data |
domany |
Bollean telling the function is called for a multivariate (true ) or univariate (false ) survRes object. |
startyear |
Year to begin the axis labeling (the year where the oldest data come from) |
firstweek |
Number of the first week of January in the first year (just for axis labeling reasons) |
legend |
Boolean indicating whether to add a legend |
same.scale |
Plot all time series with the same ylim ? Defaults to true |
ylim |
range of y axis |
xlegpos |
x position of the legend as fraction of max(xlim) |
ylegpos |
y position of legend as fraction of max(ylim) |
... |
further arguments for the function matplot |
The 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.
a plot |
showing the number of infected, the threshold for recognizing an outbreak, the computed alarm status and the defined alarm status. |
M. Höhle
data(ha) ctrl <- list(range = 209:290, b = 2, w = 6, alpha = 0.005) plot(algo.bayes(aggregate(ha), control = ctrl))