Description Usage Arguments Details Author(s) References Examples
This function plot an epidemic curve (need ggplot2)
1 2 3 |
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 |
When period is "week" the date MUST be in ISOweek format YYYY-WNN. When period is "month" the date MUST be formated YYYY-MM.
<jp.decorps@epiconcept.fr> & <m.vallee@epiconcept.fr>
https://fr.wikipedia.org/wiki/Courbe_épidémique
1 2 3 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.