tactile.theme: Tactile Theme

View source: R/tactile.theme.R

tactile.themeR Documentation

Tactile Theme

Description

A custom theme for lattice that tries to make away with some of the (in this author's opinion) excessive margins that result from the default settings. It also provides a different color theme based partly on latticeExtra::custom.theme().

Usage

tactile.theme(fontsize = c(12, 8), color = TRUE, ...)

Arguments

fontsize

A vector of two numeric scalars for text and symbols respectively.

color

Colorized theme.

...

Additional named options.

Details

The theme currently modifies the default lattice theme so that

  • paddings (margins) are minimized,

  • axis tick lengths are halved, and

  • title size is decreased slightly.

Value

A list of graphical parameters that for instance could be supplied inside a call to lattice::xyplot() or set via lattice::lattice.options().

Examples

xyplot(speed ~ dist, data = cars, par.settings = tactile.theme())
opars <- trellis.par.get()
trellis.par.set(tactile.theme())
show.settings()
trellis.par.set(opars)

jolars/tactile documentation built on May 26, 2023, 4:05 a.m.