drawBarsFin | R Documentation |

This function plots the new cases or total cases of an epidemic for selected regions in Finland.

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

`data` |
data frame including columns |

`pop` |
data frame including columns |

`regions` |
vector of characters strings indicating the regions for which the selected statistic is plotted |

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

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

`measure` |
statistic to be plotted |

`atop` |
logical indicating if the bars of different regions 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 (rolling mean of 7 observations) is plotted |

`bars` |
logical indicating if bars are plotted |

No value.

Arto Luoma <arto.luoma@wippies.com>

`drawBars`

, `dataCovidFin`

```
data(dataCovidFin)
data(popRegionsFin)
drawBarsFin(dataCovidFin,popRegionsFin,regions=popRegionsFin$Alue[1:7])
```

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.