Skip to contents

The ggplot2.utils package simplifies access to utility functions adding functionality to ggplot2. The package imports functions across multiple extensions packages and then exports them, so that the user only needs to load this package instead of multiple others. In addition, this package provides layers for Kaplan-Meier lines and ticks additions to plots.
All functions are tested to make sure that they work reliably.

Installation

Typically you want to install the release version. Developers and beta-testers might want to install the development version.

Release

You can install the current release version from CRAN with:

install.packages("ggplot2.utils")

Development

You can install the current development version from R-Universe with:

install.packages(
  "ggplot2.utils",
  repos = c("https://insightsengineering.r-universe.dev", "https://cloud.r-project.org")
)

Alternatively, you can install the current development version from GitHub with:

if (!require("remotes")) {
  install.packages("remotes")
}
remotes::install_github("insightsengineering/ggplot2.utils")

Getting Started

Have a look at the package index to explore the available functionality:

help(package = "ggplot2.utils")

Citing ggplot2.utils

To cite ggplot2.utils please see here.