Description Usage Arguments Value Examples
View source: R/alert_functions.R
Function to plot the output of alertaRio().
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
)
|
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") |
a plot
1 2 3 | # Parameters for the model
alerio2 <- alertaRio(naps = 0:9, se=201804, delaymethod="fixedprob", cid10 = "A90")
plot_alertaRio(alerio2, var = "inc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.