## 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, \dots)
## S3 method for class 'disProg.one':
plot(x, title = "", xaxis.years=TRUE, quarters=TRUE,
startyear = x$start[1], firstweek = x$start[2], ylim=NULL, xlab="time",
ylab="No. infected",type="hh",lty=c(1,1),col=c(1,1),
outbreak.symbol = list(pch=3, col=3), legend.opts=list(x="top",
legend=c("Infected", "Outbreak"), lty=NULL,pch=NULL,col=NULL), ...)
disProg
TRUE
, the x axis is labeled using yearssts
.TRUE
all individual time series are shown in
one plotTRUE
all plots have same scalehh
)pch
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
# 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 the simulated disease with the defined outbreaks
plot(disProgObj)
title <- "Number of Infected and Defined Outbreak Positions for Simulated Data"
plot(disProgObj, title = title)
plot(disProgObj, title = title, xaxis.years=TRUE,
startyear = 1999, firstweek = 13)
plot(disProgObj, title = title, xaxis.years=TRUE,
startyear = 1999, firstweek = 14)
# Plotting of measles data
data(measles.weser)
# one plot
plot(measles.weser, title = "measles cases in the district Weser-Ems",
xaxis.years=TRUE, startyear= 2001, firstweek=1)
# plot cases for each "Kreis"
plot(measles.weser, same.scale=TRUE, as.one=FALSE)
Run the code above in your browser using DataLab