autoplot_multisite_baseline: Creates plot comparing different participant groups from the...

View source: R/plotting.R

autoplot_multisite_baselineR Documentation

Creates plot comparing different participant groups from the Multisite study.

Description

An alternative approach to using this automatic function is to manually create a ggplot with the "geom_scatter_column()" function and "theme_chewr()".

Usage

autoplot_multisite_baseline(comparison, ...)

Arguments

comparison

str | Variable to be compared

...

list | List of standard ggplot arguments

Value

ggplot2 object

Examples

autoplot_multisite_baseline(data = redcap_data,
            filter = "baseline",
            y_aes = "pdff_liver_cirle_mean",
            order = c("control", "obese", "intervention"),
            plot_title = "Liver fat",
            plot_subtitle = "Amount of fat in liver",
            plot_xlab = "Groups",
            plot_ylab = "% of liver fat")

AndersAskeland/chewr documentation built on June 23, 2022, 11:07 a.m.