trans3d              package:grDevices              R Documentation

_3_D _t_o _2_D _T_r_a_n_s_f_o_r_m_a_t_i_o_n _f_o_r _P_e_r_s_p_e_c_t_i_v_e _P_l_o_t_s

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

     Projection of 3-dimensional to 2-dimensional points using a 4x4
     viewing transformation matrix.  Mainly for adding to perspective
     plots such as 'persp'.

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

     trans3d(x,y,z, pmat)

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

 x, y, z: numeric vectors of equal length, specifying points in 3D
          space.

    pmat: a 4 x 4 _viewing transformation matrix_, suitable for
          projecting the 3D coordinates (x,y,z) into the 2D plane using
          homogeneous 4D coordinates (x,y,z,t); such matrices are
          returned by 'persp()'.

_V_a_l_u_e:

     a list with two components 

     x,y: the projected 2d coordinates of the 3d input '(x,y,z)'.

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

     'persp'

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

     ## See  help(persp) {after attaching the 'graphics' package}
     ##      -----------

