Skip to content

michaelmalick/ggsimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

A simple theme for ggplot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages