plot.trsPre: Plot results form prepanel

Description Usage Arguments Details Value See Also Examples

Description

Plot results form prepanel

Usage

1
2
3
4
## S3 method for class 'trsPre'
plot(x, layout = c(2, 2), as.table = TRUE, strip = FALSE,
  strip.left = TRUE, between = list(y = 0.25), xlab = "Rank",
  ylab = "Panel Limits", ...)

Arguments

x

object of class "trsPre" created by prepanel

layout, as.table, strip, strip.left, between, xlab, ylab, ...

parameters for the lattice plot that is output (these are defaults - can ignore unless you want fine control)

Details

This function plots the sorted axis ranges for the x and y axis for the case of "same" (all axis limits share the same range) and "sliced" (all axis limits share the) and can be useful in helping determine how to ultimately set the limits.

Value

object of class "trellis" (plotted by default)

See Also

prepanel, makeDisplay

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Not run: 
irisSplit <- datadr::divide(iris, "Species")
irisPreFn <- function(x) {
  list(
    xlim = range(x$Sepal.Length),
    ylim = range(x$Sepal.Width)
  )
}
irisPre <- prepanel(irisSplit, prepanelFn = irisPreFn)
plot(irisPre)

## End(Not run)

d <- datadr::divide(iris, "Species")

irisPreFn <- function(x) {
  list(
    xlim = range(x$Sepal.Length),
    ylim = range(x$Sepal.Width)
  )
}

irisPre <- prepanel(d, prepanelFn = irisPreFn)

plot(irisPre)

irisLims <- setLims(irisPre, x = "same", y = "sliced")

delta-rho/trelliscope documentation built on May 15, 2019, 3:21 a.m.