Skip to contents

Introduction

The ckbplotr R package provides functions to help create and style plots in R using the ggplot2 graphics package.

CKB style

Use + ckb_style() to apply CKB style to a ggplot. See CKB style ggplot for details.

Plots

Create plots of estimates against risk factor levels using shape_plot(). See Shape plots for details.

Create forest plots using forest_plot(). See Forest plots for details.

Saving

See Save plots to files.

More

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