gg.theme: gg.theme

Description Usage Arguments Details Value Examples

View source: R/fRedsRutils.R

Description

gg.theme

Usage

1
gg.theme(type = c("clean", "noax"), useArial = F, 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")

FredHasselman/nlRtsa documentation built on May 6, 2019, 5:07 p.m.