Description Usage Arguments Details Value Author(s) See Also Examples
Part of the playwith Application Programming Interface.
1 2 3 | xyCoords(playState = playDevCur(), space = "plot")
xyData(playState = playDevCur(), space = "plot")
getDataArg(playState = playDevCur(), eval = TRUE)
|
playState |
a |
space |
character, the plot space for which to get data.
This is only relevant to multi-panel lattice plots, where data is split across panels.
In this case, if |
eval |
whether to evaluate the argument; otherwise return the it as it appears in the call. |
None yet.
the returned value is a list with elements x
and y
, which are
numeric vectors in the case of xyCoords
.
Can also include an element subscripts
, and generally will for
lattice plots (similar to the result of calling
trellis.panelArgs
).
Felix Andrews felix@nfrac.org
playwith.API,
plotCoords
1 2 3 4 5 6 7 8 9 10 11 12 13 | if (interactive()) {
library(lattice)
x <- as.Date("1990-01-01") + 1:20 - 1
ab <- rep(c("a", "b"), each=10)
playwith(xyplot(1:20 ~ x | ab, subscripts = TRUE))
playState <- playDevCur()
xyCoords(playState, space="packet 2")
xyData(playState, space="packet 2")
try(xyData(playState, space="plot"))
getDataArg(playState)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.