plot.disProg | R Documentation |
Plotting a (multivariate) disProg
object (soft-deprecated).
As of surveillance 1.20.0, legacy disProg
objects are
plotted via internal disProg2sts
conversion
and stsplot_time
.
## S3 method for class 'disProg'
plot(x, title = "", xaxis.years=TRUE, startyear = x$start[1],
firstweek = x$start[2], as.one=TRUE, same.scale=TRUE, ...)
x |
object of class |
title |
plot title |
xaxis.years |
if |
startyear , firstweek |
(legacy arguments, ignored with a warning) |
as.one |
if |
same.scale |
if |
... |
further arguments passed to |
# Plotting of simulated data
disProgObj <- sim.pointSource(p = 0.99, r = 0.5, length = 208,
A = 1, alpha = 1, beta = 0, phi = 0,
frequency = 1, state = NULL, K = 5)
plot(disProgObj)
title <- "Infection Counts and Defined Outbreaks for Simulated Data"
plot(disProgObj, title = title)
plot(disProgObj, title = title, xaxis.years = FALSE)
# Plotting of measles data
data(measles.weser)
# one plot
plot(measles.weser, title = "measles cases in the district Weser-Ems")
# plot cases for each "Kreis"
plot(measles.weser, as.one = FALSE)
plot(measles.weser, as.one = FALSE, same.scale = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.