
Theme for ggplot2 that is similar to the default style of charts in current versions of Microsoft Excel.
theme_excel_new(base_size = 9, base_family = "sans")
An object of class theme()
.
base font size, given in pts.
base font family
Other themes excel:
theme_excel()
library("ggplot2")
p <- ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
facet_wrap(~am)
p + theme_excel_new() + scale_colour_excel_new()
Run the code above in your browser using DataLab