Description Usage Arguments Details Value See Also Examples
Plot results form prepanel
1 2 3 4 |
x |
object of class "trsPre" created by |
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) |
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.
object of class "trellis" (plotted by default)
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.