data("ha")
ha
plot(aggregate(ha))
## conversion of the old "disProg" object 'ha' to the new S4 class "sts"
if (requireNamespace("maptools")) {
shpfile <- system.file("shapes/berlin.shp",package="surveillance")
ha.sts <- disProg2sts(ha, map=maptools::readShapePoly(shpfile,IDvar="SNAME"))
} else {
data("ha.sts")
# is almost identical to the above except that German umlauts
# have been replaced in 'ha.sts@map@data$BEZIRK' for compatibility reasons
}
ha.sts
plot(ha.sts, type = observed ~ unit, labels = TRUE)
Run the code above in your browser using DataLab