This package contains formatting templates and a suite of helper functions used and developed by the Biostatistics team at The Kids Research Institute Australia.
All templates and themes in this package use the “Barlow” font family which is not installed by default on many machines. It can be installed here:
The Kids Research Institute Australia biostats package can be installed from the R-universe with the following:
install.packages("thekidsbiostats", repos = "https://the-kids-biostats.r-universe.dev", dependencies = TRUE)
Alternatively, the package can be installed via remotes:
remotes::install_github("The-Kids-Biostats/thekidsbiostats", build_vignettes = TRUE, dependencies = TRUE)
Because the “Barlow” font is utilised by default on many machines, this font must be downloaded, installed, and then registered so R can recognise it. To register the font in R, simply run:
extrafont::font_import()
thekids_table() requires the font to be installed at a system level,
else a default font family will be applied (sans).theme_thekids() can either call the font from the system (after
registration), else a fall-back to install the font (using a Google
API) will be called.At the moment, vignettes exist for:
data_manipulations)model_output)project_workflow)thekids_theming)miscellaneous)Accessing these vignettes can be done two ways:
utils::browseVignettes(package = "thekidsbiostats")
vignette(x, package = "thekidsbiostats") where x is the
function name
See here for a broad walkthough of the package and its functionalities.
To make use of our project structure templates for a new project, follow the following steps:
thekidsbiostats::create_project().
thekidsbiostats::create_template().
.html or .docx templates can be created.Using functions that automatically apply a set of formatting options to plots and tables saves time, allowing us to focus on the analysis and interpretation.
theme_thekids()
thekids_table()
thekids_model()round_vec() & round_df()
fct_case_when()