Learn R Programming

rapport (version 0.3)

theme.rapport: Rapport theme

Description

Custom minimalistic but colorful lattice/trellis theme used by default in rapport.

Usage

theme.rapport(bw = FALSE,
    palette = getOption("style.color.palette"),
    colorize = getOption("style.colorize"),
    font = getOption("style.font"), custom)

Arguments

bw
generating black and white output?
palette
color palette to use. See: rp.palette for details.
colorize
adding some random noise instead of using first available color(s) from palette
font
specified font family
custom
list of custom lattice options to change. E.g. par.main.text = list(lineheight = 2)

Value

  • list of lattice parameters

Details

Default parameters are read from options:

  • 'style.color.palette',
  • 'style.colorize',
  • 'style.font'.

References

Forked from latticeExtra::ggplot2like() and lattice::standard.theme().

Examples

Run this code
theme.rapport()
theme.rapport(palette='Greens')
theme.rapport(palette='Greens', colorize = FALSE)
theme.rapport(custom=list(par.main.text = list(lineheight = 2)))

Run the code above in your browser using DataLab