Learn R Programming

ggthemes (version 2.1.0)

theme_excel: ggplot color theme based on old Excel plots

Description

Theme to replicate the ugly monstrosity that was the old gray-background Excel chart. Please never use this.

Usage

theme_excel(base_size = 12, base_family = "", horizontal = TRUE)

Arguments

base_size
numeric base font size
base_family
character base font family
horizontal
logical. Horizontal axis lines?

Value

  • An object of class theme.

Examples

Run this code
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
# Old line color palette
(qplot(carat, price, data=dsamp, colour=clarity)
 + theme_excel()
 + scale_colour_excel() )
# Old fill color palette
(ggplot(diamonds, aes(clarity, fill=cut))
+ geom_bar()
+ scale_fill_excel("fill")
+ theme_excel())

Run the code above in your browser using DataLab