plot_alertaRio: Plot the time series of alerts for each APS. Specific for the...

Description Usage Arguments Value Examples

View source: R/alert_functions.R

Description

Function to plot the output of alertaRio().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plot_alertaRio(
  ale,
  aps,
  var = "casos",
  cores = c("#0D6B0D", "#C8D20F", "orange", "red"),
  ini = 201001,
  fim = 202001,
  ylab = var,
  yrange,
  salvar = FALSE,
  nome.fig = "grafico",
  datasource = con
)

Arguments

ale

object created by alertaRio()

aps

aps to be plotted. If missing, figures will be created for all aps (health districts)

var

variable to be plotted, usually "cases", or "inc".

cores

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

ini

first epidemiological week. If not stated, use the first one available

fim

last epidemiological week. If not stated, use the last one available

ylab

y axis label

yrange

y axis range

salvar

TRUE to save the figure (default is FALSE)

nome.fig

figure name (default is "grafico")

Value

a plot

Examples

1
2
3
# Parameters for the model
alerio2 <- alertaRio(naps = 0:9, se=201804, delaymethod="fixedprob", cid10 = "A90")
plot_alertaRio(alerio2, var = "inc")

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