ckbplotr

Use ckbplotr to create and style publication-quality plots. The package is focused on plots for epidemiology and is developed by a China Kadoorie Biobank and Oxford Population Health researcher.

Installation

Install the latest version of ckbplotr from the neilstats R-universe:

install.packages('ckbplotr',
                 repos = c('https://neilstats.r-universe.dev',
                           getOption('repos')))

Get started

Read vignette("ckbplotr") to get started.

Additional examples and tutorials for using the package can be found at https://neilstats.github.io/ckbplotr-book.

Key features

The package can be used to apply CKB style and to create plots by generating ggplot2 code. Functions that create plots (such as shape_plot() and forest_plot()) return both:

Citing ckbplotr

If you find this package useful, please consider citing as:

Wright N (2025). ckbplotr: Create Plots. https://neilstats.github.io/ckbplotr, https://doi.org/10.5281/zenodo.6382217.

Package development

This package is under development. If you find an error or bug or have a suggestion for improvement please create an issue on GitHub or contact the author at @NeilStats@fediscience.org.