p3d                  package:onion                  R Documentation

_T_h_r_e_e _d_i_m_e_n_s_i_o_n_a_l _p_l_o_t_t_i_n_g

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

     Three dimensional plotting of points.  Produces a nice-looking 3D
     scatterplot with greying out of further points givin a visual
     depth cue

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

     p3d(x, y, z, xlim = NULL, ylim = NULL, zlim = NULL, d0 = 0.2, h = 1, ...)

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

       x: vector of x coordinates to be plotted.  If a matrix,
          interpret the rows as 3D Cartesian coordinates

       y: Vector of y coordinates to be plotted

       z: Vector of z coordinates to be plotted

    xlim: Limits of plot in x direction, with default of 'NULL' meaning
          to use 'range(x)'.

    ylim: Limits of plot in y direction, with default of 'NULL' meaning
          to use 'range(y)'.

    zlim: Limits of plot in z direction, with default of 'NULL' meaning
          to use 'range(z)'.

      d0: Efolding distance for graying out (depths are standardized to
          be between 0 and 1).

       h: The hue for the points, with default value of 1 corresponding
          to red.   If 'NULL', produce  black  points greying to white.

     ...: Further arguments passed to 'persp()' and 'points()'

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

     Value returned is that given by function 'trans3d()'.

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

     Robin K. S. Hankin

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

     'bunny'

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

     data(bunny)
     p3d(bunny,theta=3,phi=104,box=FALSE)

