gg.theme: gg.theme

Description Usage Arguments Details Value Examples

Description

A gg theme

Usage

1
2
gg.theme(type = c("clean", "noax"), useArial = FALSE,
  afmPATH = "~/Dropbox")

Arguments

type

One of clean, or noax

useArial

Use the Arial font (requires .afm font files in the afmPath)

afmPATH

Path to Arial .afm font files.

Details

Will generate a clean ggplot theme, or a theme without any axes (noax).

Some scientific journals explicitly request the Arial font should be used in figures. This can be achieved by using .afm font format (see, e.g. http://www.pure-mac.com/font.html).

Value

A theme for ggplot2.

Examples

1
2
3
4
library(ggplot2)
g <- ggplot(data.frame(x = rnorm(n = 100), y = rnorm(n = 100)), aes(x = x, y = y)) + geom_point()
g + gg.theme()
g + gg.theme("noax")

ManyLabsOpenScience/manylabRs documentation built on May 14, 2019, 5:21 p.m.