plot3D             package:compositions             R Documentation

_3_D-_p_l_o_t _o_f _c_o_m_p_o_s_i_t_i_o_n_a_l _d_a_t_a

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

     3D-plot of compositional data. The plot is mainly an exploratory
     tool, not intended for exact display of data.

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

      ## S3 method for class 'acomp':
      plot3D(x, parts=1:min(ncol(X),4),..., 
                  lwd=2, axis.col="gray", add=FALSE, cex=2, 
                  vlabs=colnames(x), vlabs.col=axis.col, center=FALSE, 
                  scale=FALSE, log=FALSE, bbox=FALSE, axes=TRUE, size=cex)
     ## S3 method for class 'rcomp':
     plot3D(x,parts=1:min(ncol(X),4),...,
                  lwd=2,axis.col="gray",add=FALSE,cex=2,
                  vlabs=colnames(x),vlabs.col=axis.col,center=FALSE,
                  scale=FALSE,log=FALSE,bbox=FALSE,axes=TRUE,size=cex)

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

       x: an aplus object to be plotted

   parts: a numeric xor character vector of length 3 coding the columns
          to be plotted

     ...: additional plotting parameters as described in 'rgl.material'

     add: logical, adding  or new plot

     cex: size of the plotting symbols

     lwd: line width

axis.col: color of the axis

   vlabs: the column names to be plotted, if missing defaults to the
          column names of the selected columns of X

vlabs.col: color of the labels

  center: logical, should the data be centered

   scale: logical, should the data be scaled

     log: logical, indicating wether to plot in log scale

    bbox: logical, whether to add a bounding box

    axes: logical, whether plot a coordinate cross

    size: size of the plotting symbols

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

     The routine behaves different when 3 or four components should be
     plotted. In case of four components: 
      If log is TRUE the data is plotted in 'ilr' coordinates. This is
     the isometric view of the data. 
      If log is FALSE the data is plotted in 'ipt' coordinates and a
     tetrahedron is plotted around it if 'coors == TRUE'. This can be
     used to do a tetrahedron plot. 
      In case of three components: 
      If log is TRUE the data is plotted in 'clr' coordinates. This can
     be used to visualize the clr plane. 
      If log is FALSE the data is plotted as is, showing the embedding
     of the three-part simplex in the three-dimensional space.  
      In all cases: If 'coors' is true, coordinate arrows are plotted
     of length 1 in the origin of the space, except in the tetrahedron
     case.

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

     Called for its side effect of a 3D plot of an acomp object in an
     rgl plot.

_N_o_t_e:

     The function 'kingTetrahedron' provides an alternate way of
     tetrahedron plots, based on a more advanced viewer, which must be
     downloaded separately.

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

     K.Gerald v.d. Boogaart <URL: http://www.stat.boogaart.de>

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

     'kingTetrahedron' 'points3D',   'plot3D', 'plot', 'plot3D.rmult',

     'plot3D.acomp','plot3D.rcomp',, 'plot3D.aplus','plot3D.rplus'

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

     data(SimulatedAmounts)
     plot3D(acomp(sa.lognormals5),1:3)
     plot3D(acomp(sa.lognormals5),1:3,log=TRUE)
     plot3D(acomp(sa.lognormals5),1:4)
     plot3D(acomp(sa.lognormals5),1:4,log=TRUE)

