drawBars | R Documentation |

This function plots several epidemic statistics for selected countries.

```
drawBars(data, countries, start = "2020-06-01", end = "last", measure = "new_cases",
atop = TRUE, perMillion = FALSE, drawMean = TRUE, bars = TRUE)
```

`data` |
data frame similar to (or including the same columns as) |

`countries` |
vector of characters srings indicating the countries for which the selected statistic is plotted |

`start` |
beginning date of the time window for which the statistic is plotted |

`end` |
ending date of the time window for which the statistic is plotted |

`measure` |
statistic to be plotted |

`atop` |
logical indicating if the bars of different countries are plotted on top of one another |

`perMillion` |
logical indicating if the statistic is proportioned to a population of million |

`drawMean` |
logical indicating if a smoothed curve is drawn |

`bars` |
logical indicating if bars are plotted |

No value.

Arto Luoma <arto.luoma@wippies.com>

`drawBarsFin`

, `dataCovid`

```
data(dataCovid)
drawBars(data=dataCovid, countries=c('Finland','France'),start='2020-6-1',
measure='new_cases',perMillion=TRUE)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.