Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 735 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 735 Bytes

ggsimple

This R package provides the theme_simple ggplot theme. Features include:

  • thin grey boxes around plot regions
  • clean facet labels
  • light and dark modes

Installation

The ggsimple package is not on CRAN, but can be installed from R using:

# install.packages("devtools")
devtools::install_github(repo = "michaelmalick/ggsimple")

Usage

library(ggplot2)
library(ggsimple)

g <- ggplot(CO2) +
    aes(x = conc, y = uptake, color = Plant) +
    geom_point() +
    facet_grid(Treatment ~ Type)

## Light mode (default)
g + theme_simple()

## Dark mode
g + theme_simple(grid = TRUE, mode = "dark")