ec.epiCurve: Plot an epidemic curve

Description Usage Arguments Details Author(s) References Examples

View source: R/GR_EpiCurve.class.R

Description

This function plot an epidemic curve (need ggplot2)

Usage

1
2
3
ec.epiCurve(x, date = NULL,freq = NULL, cutvar = NULL, 
   period = NULL, cutorder = NULL, colors = NULL,
   title = NULL, xlabel = NULL, ylabel=NULL, note=NULL)

Arguments

x

data.frame with at least one column with Date type

date

character, name of Date column

freq

character, name of a column with a value to display

cutvar

character, name of a column with factors

period

character, c("day","week", "month")

cutorder

character vector of factors

colors

character vector of colors

title

character, title of the plot

xlabel

character, label for x axis

ylabel

character, label for y axis

note

character, add a note under the graph

Details

When period is "week" the date MUST be in ISOweek format YYYY-WNN. When period is "month" the date MUST be formated YYYY-MM.

Author(s)

<[email protected]> & <[email protected]>

References

https://fr.wikipedia.org/wiki/Courbe_<c3><a9>pid<c3><a9>mique

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

Epiconcept-Paris/Epiconcepts documentation built on July 6, 2017, 7:24 a.m.