rgl.viewpoint              package:rgl              R Documentation

_s_e_t_u_p _V_i_e_w_p_o_i_n_t

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

     Set the viewpoint orientation.

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

     rgl.viewpoint( theta = 0, phi = 15, fov = 60, zoom = 0, interactive = TRUE )

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

theta,phi: polar coordinates

     fov: field-of-view angle

    zoom: zoom factor

interactive: logical, specifying if interactive navigation is allowed

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

     The viewpoint is always positioned orbiting around the data model.
      It may be specified by using the command or interactively using
     the pointing device of your graphics user-interface. Using the
     pointing device, you may drag on the device window using the
     buttons:

   _l_e_f_t adjust viewpoint position

   _m_i_d_d_l_e adjust field of view angle

   _r_i_g_h_t _o_r _w_h_e_e_l adjust zoom factor

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

     # animated round trip tour

     for(i in 1:360) {
       rgl.viewpoint(i,i/4); 
     }

