mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 08:52:15 +02:00
geom_rsi - any parameter
This commit is contained in:
@ -11,13 +11,13 @@
|
||||
\usage{
|
||||
ggplot_rsi(data, position = NULL, x = "Antibiotic",
|
||||
fill = "Interpretation", facet = NULL, translate_ab = "official",
|
||||
alpha = 1, fun = portion_df, ...)
|
||||
fun = portion_df, ...)
|
||||
|
||||
geom_rsi(position = NULL, x = c("Antibiotic", "Interpretation"),
|
||||
fill = "Interpretation", translate_ab = "official", alpha = 1,
|
||||
fun = portion_df)
|
||||
fill = "Interpretation", translate_ab = "official",
|
||||
fun = portion_df, ...)
|
||||
|
||||
facet_rsi(facet = c("Interpretation", "Antibiotic"), ...)
|
||||
facet_rsi(facet = c("Interpretation", "Antibiotic"))
|
||||
|
||||
scale_y_percent()
|
||||
|
||||
@ -38,11 +38,9 @@ theme_rsi()
|
||||
|
||||
\item{translate_ab}{a column name of the \code{\link{antibiotics}} data set to translate the antibiotic abbreviations into, using \code{\link{abname}}. Default behaviour is to translate to official names according to the WHO. Use \code{translate_ab = FALSE} to disable translation.}
|
||||
|
||||
\item{alpha}{opacity of the fill colours}
|
||||
|
||||
\item{fun}{function to transform \code{data}, either \code{\link{portion_df}} (default) or \code{\link{count_df}}}
|
||||
|
||||
\item{...}{other parameters passed on to \code{\link[ggplot2]{facet_wrap}}}
|
||||
\item{...}{other parameters passed on to \code{geom_rsi}}
|
||||
}
|
||||
\description{
|
||||
Use these functions to create bar plots for antimicrobial resistance analysis. All functions rely on internal \code{\link[ggplot2]{ggplot}} functions.
|
||||
|
Reference in New Issue
Block a user