custom.ggplot: Custom ggplot2 like theme

View source: R/custom_theme.R

custom.ggplotR Documentation

Custom ggplot2 like theme

Description

Custom theme for lattice plots. Graphical parameters are passed down to 'ggplot2like()', which passes them down to 'simpleTheme()'.

Usage

custom.ggplot(...)

Arguments

...

graphical parameters passed down to 'ggplot2like()' and 'simpleTheme()'

Examples

library(lattice)
data(mtcars)

xyplot(mpg ~ factor(carb) | gear, mtcars,
  groups = carb, auto.key = list(columns = 3),
  par.settings = custom.ggplot(),
  panel = function(x, y, ...) {
    panel.grid(h = -1, v = -1, col = "white")
    panel.xyplot(x, y, ...)
    panel.lmline(x, y, ...)
  }
)


m-jahn/lattice-tools documentation built on Dec. 3, 2023, 11:14 p.m.