"Less is more" theme for ggPlot2
March 29, 2019 ยท View on GitHub
This a minimalist theme for making simple and efficient plots in ggPlot2, aimed towards academic manuscripts.
How to use
- Download the
theme_lessismore.Rfile - Using an R command line, import ggPlot2 :
import("ggplot2") - Import the
theme_lessismore.Rfile :
source("INSERT FILE DIRECTORY HERE/theme_lessismore.R") - For testing, use the
theme_lessismore()function. For example :
ggplot(mpg, aes(x = cty, y = hwy)) +
geom_point() +
theme_lessismore()
- In order to use as the default ggPlot2 theme for the current session, use the following command :
theme_set( theme_gray() + theme_lessismore() )
- NB : This theme uses the Helvetica font.
Gallery