| setAutoPlaywith {plotAndPlayGTK} | R Documentation |
Set playwith to run automatically with lattice plots.
setAutoPlaywith(on = TRUE)
on |
TRUE to set playwith to run automatically
with lattice plots; FALSE to revert to the usual plot device. |
When enabled, the print.trellis function, which is typically
called implicitly to create lattice plots, will trigger
playwith, passing the original high-level call.
So for lattice plots only, this is like changing your default plot device.
However, it only replaces screen devices: plotting to a file device will work as normal.
Note that this automatic behaviour is not a full replacement for calling
playwith directly, since it does not allow to you specify any of the
optional arguments.
This feature requires lattice package version 0.17-1 or later.
Felix Andrews felix@nfrac.org
## Not run:
## appears in your usual screen device:
xyplot(Sepal.Length ~ Sepal.Width | Species, data=iris)
setAutoPlaywith(TRUE)
## appears in the playwith interface:
xyplot(Sepal.Length ~ Sepal.Width | Species, data=iris)
setAutoPlaywith(FALSE)
## End(Not run)