theme_calc: Theme Calc

Description Usage Arguments Examples

View source: R/calc.R

Description

Theme similar to the default settings of LibreOffice Calc charts.

Usage

1
theme_calc(base_size = 10, base_family = "sans")

Arguments

base_size

base font size, given in pts.

base_family

base font family

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library("ggplot2")

p <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
     facet_wrap(~am) + theme_calc()
p + scale_color_calc()
q <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, shape = factor(gear))) +
     facet_wrap(~am) +
     theme_calc()
q + scale_shape_calc()

Example output



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