theme_par: Theme which uses the current 'base' graphics parameter values...

Description Usage Arguments Details See Also Examples

View source: R/base.R

Description

Currently this theme uses the values of the parameters: "code", ""ps"", "code" "family", "fg", "bg", "adj", "font", "cex.axis", "cex.lab", "cex.main", "cex.sub", "col.axis", "col.lab", "col.main", "col.sub", "font", "font.axis", "font.lab", "font.main", "font.sub", "las", "lend", "lheight", "lty", "mar", "ps", "tcl", "tck", "xaxt", "yaxt".

Usage

1
theme_par(base_size = par()$ps, base_family = par()$family)

Arguments

base_size

base font size, given in pts.

base_family

base font family

Details

This theme does not translate the base graphics perfectly, so the graphs produced by it will not be identical to those produced by base graphics, most notably in the spacing of the margins.

See Also

Other themes: theme_base(), theme_clean(), theme_foundation(), theme_igray(), theme_solid()

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)

p + theme_par()

# theme changes with respect to values of par
par(font = 2, col.lab = "red", fg = "white", bg = "black")
p + theme_par()

Example output



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

Related to theme_par in ggthemes...