theme_mathieu: Mathieu's Custom Theme

Description Usage Arguments Value Examples

View source: R/theme_mathieu.R

Description

Custom ggplot2 themes for plots

Usage

1
2
3
4
theme_mathieu(title.label, x.label = "", y.label = "",
  subtitle.label = "", base_size = 14, watermark.coord = NULL,
  watermark.size = 15, watermark.alpha = 0.15, watermark.angle = 30,
  watermark.color = "red")

Arguments

title.label

Title

x.label

X Label

y.label

Y Label

subtitle.label

Subtitle

base_size

Font size

watermark.coord

Coordinates for watermark

watermark.size

Size of the watermark

watermark.alpha

Transparency of the watermark

watermark.angle

Angle of the watermark

watermark.color

Color of the watermark

Value

The ggplot2 theme

Examples

1
2
3
4
5
6
7
ggplot(mtcars, aes(x=wt,y=qsec))
+ geom_point() +
theme_mathieu(title.label="mathieuR Theme Example",
subtitle.label="Compares wt and qsec of the mtcars dataset",
x.label = "Weight",
y.label = "QSEC",
watermark.coord=c(mean(mtcars$wt), mean(mtcars$qsec)))

mathieubray/mathieuR documentation built on Aug. 30, 2021, 2:49 a.m.