panel_tplot: Panel 'tplot'

View source: R/panels.R

panel_tplotR Documentation

Panel tplot

Description

Panel with tplots.

Usage

panel_tplot(
  data,
  y = seq.int(length(data)),
  col = 1L,
  axes = FALSE,
  logx = FALSE,
  add = TRUE,
  panel.first = NULL,
  panel.last = NULL,
  ...
)

Arguments

data

a list or data frame for each tplot

y

y-coordinates where each row of data is plotted

col

color for each, recycled as needed

axes

logical; if TRUE, the x-axis is drawn

logx

logical; if TRUE, use a logarithmic x-axis

add

logical; if TRUE, adds to an existing plot; otherwise, a new plot is created first

panel.first, panel.last

expressions to be evaluated before and after any plotting; see plot.default

...

additional arguments passed to boxplot

See Also

tplot

Other panel functions: panel_box(), panel_ci()

Examples

library('rawr')
set.seed(1)
l <- replicate(5, rnorm(10), simplify = FALSE)

panel_tplot(l, add = FALSE)

panel_tplot(l, type = 'd', col = 1:5, pch = 19, add = FALSE,
  panel.first = {
    p <- par('usr')
    rect(-1, p[3L], 1, p[4L], col = 'grey90', border = NA)
  },
  panel.last = abline(v = 0, lwd = 2, col = 'red')
)


raredd/forest documentation built on Feb. 19, 2024, 9:22 p.m.