if (interactive()) {
library(lattice)
playwith(xyplot(1:10 ~ 1:10))
playState <- playDevCur()
callArg(playState, "pch") ## NULL
callArg(playState, "pch") <- "$"
callArg(playState, "pch") ## "$"
playReplot(playState)
## referring to local variables
tmp <- "x"
callArg(playState, quote(scales[[tmp]]$cex)) <- 2
playReplot(playState)
}
Run the code above in your browser using DataLab