jrnold
ggthemes
R

Additional themes, scales, and geoms for ggplot2

Last updated Jun 29, 2026
1.4k
Stars
224
Forks
15
Issues
0
Stars/day
Attention Score
93
Language breakdown
R 99.3%
Makefile 0.3%
Stata 0.3%
Rez 0.2%
Shell 0.0%
Files click to expand
README

R-CMD-check Code Coverage Status rstudio mirror downloads CRAN status lifecycle

Some extra geoms, scales, and themes for ggplot.

Install

To install the stable version from CRAN,

r
install.packages('ggthemes', dependencies = TRUE)

Or, to install the development version from github, use the devtools package,

r
library("devtools")
install_github(c("hadley/ggplot2", "jrnold/ggthemes"))

How to use

For a quick tutorial, check out Rafael Irizarry’s book.

Examples

r
library("ggplot2")
library("ggthemes")

mtcars2 <- within(mtcars, { vs <- factor(vs, labels = c("V-shaped", "Straight")) am <- factor(am, labels = c("Automatic", "Manual")) cyl <- factor(cyl) gear <- factor(gear) })

p1 <- ggplot(mtcars2) + geom_point(aes(x = wt, y = mpg, colour = gear)) + labs( title = "Fuel economy declines as weight increases", subtitle = "(1973-74)", caption = "Data from the 1974 Motor Trend US magazine.", x = "Weight (1000 lbs)", y = "Fuel economy (mpg)", colour = "Gears" )

r
p1 +
  scalecolorcalc() +
  theme_calc()

r
p1 + theme_clean()

r
p1 + theme_economist() +
  scalecoloureconomist()

r
p1 + theme_excel() +
  scalecolourexcel()

r
p1 + themeexcelnew() +
  scalecolourexcel_new()

r
p1 + theme_igray()

r
p1 + theme_par()

r
p1 + theme_fivethirtyeight()

r
p1 + theme_few() +
  scalecolourfew()

r
p1 + theme_solarized() +
  scalecoloursolarized()

r
p1 + theme_solarized(light=FALSE) +
  scalecoloursolarized()

r
p1 + theme_solid()

r
p1 + theme_tufte()

r
p1 + themewsj(basesize = 8) + scalecolorwsj()

r
p1 + scalecolorcolorblind()

r
p1 + scalecolortableau()

🔗 More in this category

© 2026 GitRepoTrend · jrnold/ggthemes · Updated daily from GitHub