data("measlesWeserEms")
# default plot: total region-specific counts over all weeks
plot(measlesWeserEms, type=observed~unit)
# compare with old implementation
plot(measlesWeserEms, type=observed~1|unit)
# plot incidence with region labels
plot(measlesWeserEms, type=observed~unit,
population=measlesWeserEms@map$POPULATION / 100000,
labels=list(labels="GEN", cex=0.7, font=3))
# counts in the first week of the second year only (+ display overall)
plot(measlesWeserEms, type=observed~unit, tps=53, total.args=list())
Run the code above in your browser using DataLab