plot.survRes {surveillance} | R Documentation |
Plot Generation
Description
Plotting of a survRes object.
Usage
plot.survRes(x, method="", disease="",
startyear = 2001, firstweek = 1, legend=TRUE, ...)
Arguments
x |
Object of class survRes |
method |
Surveillance method to be used in title |
disease |
Name of disease in title |
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 |
... |
further arguments for the function matplot |
Value
a plot |
showing the number of infected, the threshold for recognizing an
outbreak, the computed alarm status and the defined alarm status.
|
Author(s)
M. Höhle, A. Riebler, C. Lang
Examples
# Plotting of simulated data
disProgObj <- sim.pointSource(p = 0.99, r = 0.5, length = 400,
A = 1, alpha = 1, beta = 0, phi = 0,
frequency = 1, state = NULL, K = 5)
# evaluate the timepoints defined by range using RKI 1
control <- list(list(funcName = "rki1", range = 200:400))
survResults <- algo.call(disProgObj, control = control)
# plot the result
plot(survResults[[1]], "RKI 1", "Simulation")
plot(survResults[[1]], "RKI 1", "Simulation",
firstweek = 13, startyear = 2002)
plot(survResults[[1]], "RKI 1", "Simulation", firstweek = 14)
[Package
surveillance version 0.9-1
Index]