map_Rio: Plot the alert map for Rio de Janeiro city.

Description Usage Arguments Value Examples

View source: R/alert_functions.R

Description

Function to plot a map of the alert.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
map_Rio(
  obj,
  cores = c("green", "yellow", "orange", "red"),
  data,
  datasource = con,
  shapefile = "../report/Rio_de_Janeiro/shape/CAPS_SMS.shp",
  filename = "",
  dir,
  resol = 200
)

Arguments

obj

object created by the twoalert and fouralert functions.

cores

colors corresponding to the levels 1, 2, 3, 4.

data

Date

filename

if present, the map is saved.

dir

directory where map will be saved.

resol

dpi png resolution, default is 200

Value

a map

Examples

1
2
3
4
params <- c(varcli ="temp_min", clicrit=22, limiar_epidemico=100, limiar_preseason = 14.15)
criter <- setCriteria(rule="Af", values = params)
alerio2 <- alertaRio(naps = 0:2, crit = criter, se=201804, delaymethod="fixedprob")
map_Rio(alerio2)

claudia-codeco/AlertTools documentation built on Aug. 12, 2021, 9:58 a.m.