plot.trsPre: Plot results form prepanel

Description Usage Arguments Details Value See Also Examples

View source: R/prepanel.R

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")


trelliscope documentation built on May 19, 2017, 10:15 p.m.
Search within the trelliscope package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.