rotplot                  package:dr                  R Documentation

_d_r_a_w _m_a_n_y _2_D _p_r_o_j_e_c_t_i_o_n_s _o_f _a _3_D _p_l_o_t

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

     This function draws several 2D views of a 3D plot, sort of like a
     spinning plot.

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

     rotplot(x, y, number=9, theta=seq(0, pi/2, length = 9), ...)

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

       x: a matrix with 2 columns giving the horizontal axes of the
          full 3D plot.

       y: the vertical axis of the 3D plot.

  number: Number of 2D views of the 3D plot.

   theta: a list of rotation angles

     ...: additional arguments passed to coplot

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

     For each value of theta, draw the plot of
     cos(theta)*x[,1]+sin(theta)*x[,2] versus y.

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

     returns a graph object.

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

     Sanford Weisberg, sandy@stat.umn.edu

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

      data(ais)
      attach(ais)
      m1 <- dr(LBM ~ Ht + Wt + WCC)  
      rotplot(dr.direction(m1,which=1:2),dr.y(m1),col=markby(Sex))


