knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

abxaware

R-CMD-check

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 with:

# 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:

library(abxaware)

awr_plot(abx_sales,
         atc, 
         ddd, 
         time = month, 
         unit = region, 
         ncol = 1)


anhoej/abxaware documentation built on Feb. 8, 2024, 1:29 a.m.