epidemiological_channel: Graph the epidemiological channel

View source: R/epidemiological_channel.R

epidemiological_channelR Documentation

Graph the epidemiological channel

Description

This function has been designed to generate the epidemiological channel of dengue cases.

Usage

epidemiological_channel(
  x,
  edo,
  mun = NULL,
  state,
  scale_case,
  z,
  juris,
  jurisdiccion = NULL,
  year1,
  year2
)

Arguments

x

is the historic epidemiological dataset.

edo

is the name state.

mun

is the name municipality. is NULL for state level.

state

is a logical parameter for graph the state or municipality. If the state is TRUE the graph is the state, else the Jurisdiction, municipality

scale_case

is a numeric parameter for the breaks.

z

is the current epidemiological dataset.

juris

is a logical parameter for graph when the state is FALSE. if juris is FALSE the graph is the municipality

jurisdiccion

is the name of jurisdiction. is null in the level municipality

year1

is the previous year of the current year.

year2

is the current year

Details

The Entomological Channel is constructed in a similar way to the epidemiological channel, using the quantile function of the package stats. First we obtain the average number of eggs of the vector per year (a minimum time series of three years), week and location, second, the 25th, 50th and 75th percentiles are calculated, and categorized as success, safety, alert, respectively. As a third step, they are displayed with ggplot2 with the geom_area function. The fourth step includes the average number of eggs of the current year vector and is compared with the areas defined by the percentiles. If the temporary behavior of the eggs (average number per week) is below the success values (that is, under the area defined by success), then the control of egg abundance is in an area of success. This explanation is extrapolated to the security and alert areas. If the behavior of the eggs is above the warning zone, then it is in an epidemic zone, that is to say, the behavior of the eggs of the current year is superior to the behavior of the eggs of the time series.

Value

a graph of class ggplot.

Author(s)

Felipe Antonio Dzul Manzanilla felipe.dzul.m@gmail.com

See Also

entomological_channel

Examples

1+1


fdzul/boldenr documentation built on April 15, 2024, 10:22 p.m.