setAutoPlaywith        package:plotAndPlayGTK        R Documentation

_S_e_t _p_l_a_y_w_i_t_h _t_o _r_u_n _a_u_t_o_m_a_t_i_c_a_l_l_y _w_i_t_h _l_a_t_t_i_c_e _p_l_o_t_s.

_D_e_s_c_r_i_p_t_i_o_n:

     Set 'playwith' to run automatically with lattice plots.

_U_s_a_g_e:

     setAutoPlaywith(on = TRUE)

_A_r_g_u_m_e_n_t_s:

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

_D_e_t_a_i_l_s:

     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.

_A_u_t_h_o_r(_s):

     Felix Andrews felix@nfrac.org

_S_e_e _A_l_s_o:

     'playwith', 'lattice.options'

_E_x_a_m_p_l_e_s:

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

