drawTests | R Documentation |

This function plots time series of new and total COVID-19 tests, possibly in proportion to population.

```
drawTests(data, countries, start = "2020-06-01", end = "last", measure = "new_tests",
atop = TRUE, perThousand = FALSE, drawMean = TRUE, bars = TRUE, log = FALSE)
```

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

`countries` |
vector of characters strings indicating the countries for which the time series are plotted |

`start` |
beginning date of the time window for which the time series are plotted |

`end` |
ending date of the time window for which the time series are plotted |

`measure` |
statistic for which the time series are plotted |

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

`perThousand` |
logical indicating if the statistic is proportioned to a population of thousand |

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

`bars` |
logical indicating if bars are plotted |

`log` |
logical indicating if a log scale is used in the plot |

No value.

Arto Luoma <arto.luoma@wippies.com>

`dataCovid, drawPositiveRate`

```
data(dataCovid)
drawTests(dataCovid,countries=c("Finland","France"),perThousand=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.