theme_excel_new: ggplot theme similar to current Excel plot defaults

Description Usage Arguments Value See Also Examples

View source: R/excel.R

Description

Theme for ggplot2 that is similar to the default style of charts in current versions of Microsoft Excel.

Usage

1
theme_excel_new(base_size = 9, base_family = "sans")

Arguments

base_size

base font size, given in pts.

base_family

base font family

Value

An object of class theme().

See Also

Other themes excel: theme_excel()

Examples

1
2
3
4
5
6
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()

Example output



ggthemes documentation built on Jan. 20, 2021, 5:05 p.m.