ggtheme

0th

Percentile

ggplot2 themes

Themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts.

Usage
theme_grey(base_size = 12, base_family = "")

theme_gray(base_size = 12, base_family = "")

theme_bw(base_size = 12, base_family = "")

theme_linedraw(base_size = 12, base_family = "")

theme_light(base_size = 12, base_family = "")

theme_minimal(base_size = 12, base_family = "")

theme_classic(base_size = 12, base_family = "")

Arguments
base_size
base font size
base_family
base font family
Details

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Aliases
  • ggtheme
  • theme_bw
  • theme_classic
  • theme_gray
  • theme_grey
  • theme_light
  • theme_linedraw
  • theme_minimal
Examples
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour=factor(gear))) + facet_wrap(~am)

p
p + theme_gray()
p + theme_bw()
p + theme_linedraw()
p + theme_light()
p + theme_minimal()
p + theme_classic()
Documentation reproduced from package ggplot2, version 1.0.1, License: GPL-2

Community examples

Looks like there are no examples yet.