-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
48 lines (35 loc) · 1.17 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
# abxaware
<!-- badges: start -->
[![R-CMD-check](https://github.com/anhoej/abxaware/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/anhoej/abxaware/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
The goal of abxaware is to help aggregate and plot antibiotic usage data in accordance with the WHO AWaRe classification.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("anhoej/abxaware",
build_vignettes = TRUE)
```
To get started, read the vignette: https://anhoej.github.io/abxaware/articles/abxaware.html.
## Example
To create a plot of antibiotic use in Danish hospitals from the included dataset `abx_sales` run this:
```{r example, fig.height=9}
library(abxaware)
awr_plot(abx_sales,
atc,
ddd,
time = month,
unit = region,
ncol = 1)
```