Description Usage Arguments Details Value Author(s) Examples
Plotting of a (multivariate) survRes
object. The function plot.survRes.one
is used as a helper function to plot a univariate time series.
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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,...)
## 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), ...)
|
x |
object of class |
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 |
Boolean telling the function whether it is called for a multivariate ( |
ylim |
range of y axis |
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) |
xlab |
label of the x-axis |
ylab |
label of the y-axis |
main |
the title of the graphics is generated from the |
same.scale |
plot all time series with the same |
.
type |
line type of the observed counts (first two elements) and the upper bound (third element) |
lty |
vector of size 3 speciying the line type of the observed counts (left, right) and the upperbound line |
col |
vector with three elements: color of left bar and color of top bar, color of right bar, col of the upperbound line. |
outbreak.symbol |
list with entries |
alarm.symbol |
list with entries |
legend.opts |
a list containing the entries to be sent to the
Any further arguments to the |
... |
further arguments for the function |
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.
none. A plot showing the number of infected, the threshold for recognizing an outbreak, the alarm status and the outbreak status is generated.
M. Höhle
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.