setAutoPlaywith {plotAndPlayGTK}R Documentation

Set playwith to run automatically with lattice plots.

Description

Set playwith to run automatically with lattice plots.

Usage

setAutoPlaywith(on = TRUE)

Arguments

on TRUE to set playwith to run automatically with lattice plots; FALSE to revert to the usual plot device.

Details

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.

Author(s)

Felix Andrews felix@nfrac.org

See Also

playwith, lattice.options

Examples

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

[Package plotAndPlayGTK version 0.8.72 Index]