ggobi_display_set_tour_projection   package:rggobi   R Documentation

_S_e_t _t_o_u_r _p_r_o_j_e_c_t_i_o_n

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

     Set the tour projection from a GGobi tour.

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

     ggobi_display_set_tour_projection(gd, value)

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

      gd: 

   value: 

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

     If you know the projection you would like to see in the tour, you
     can use this function to set it.  The example illustrates setting
     the projection to show the first two principle components.

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

     Hadley Wickham <h.wickham@gmail.com>

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

     g <- ggobi(mtcars)
     d <- displays(g)[[1]]
     ## Not run: 
     pmode(d) <- "2D Tour"
     variables(d) <- list(X=names(mtcars))
     ggobi_display_get_tour_projection(d)
     pc <- princomp(as.matrix(mtcars))$loadings[,1:2]
     ggobi_display_set_tour_projection(d, pc)
     pc <- princomp(as.matrix(mtcars), cor=T)$loadings
     ggobi_display_set_tour_projection(d, pc)[,1:2]
     ## End(Not run)

