arrows3D            package:compositions            R Documentation

_a_r_r_o_w_s _i_n _3_D, _b_a_s_e_d _o_n _p_a_c_k_a_g_e _r_g_l

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

     adds 3-dimensional arrows to an rgl plot.

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

     arrows3D(...)
     ## Default S3 method:
     arrows3D(x0,x1,...,length=0.25,
                          angle=30,code=2,col="black",
                          lty=NULL,lwd=2,orth=c(1,0.0001,0.0000001),
                          labs=NULL,size=lwd)

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

      x0: a matrix or vector giving the starting points of the arrows

      x1: a matrix or vector giving the end points of the arrows

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

  length: a number giving the length of the arrowhead

   angle: numeric giving the angle of the arrowhead

    code: 0=no arrowhead,1=arrowhead at x0,2=arrowhead at x1,3=double
          headed

     col: the color of the arrow

     lty: Not implemented, here for compatibility reasons with 'arrows'

     lwd: line width in pixels

    orth: the flat side of the arrow is not unique by x0 and x1. This
          ambiguity is solved in a way that the arrow seams as wide as
          possible from the viewing direction orth.

    labs: labels to be plotted to the endpoints of the arrows

    size: size of the plotting symbol

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

     The function is called to plot arrows into an rgl plot. The size
     of the arrow head is given in a absolute way. Therefore it is
     important to give the right scale for the length, to see the arrow
     head and that it does not fill the whole window.

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

     Nothing

_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:

     'points3D', 'plot', 'plot3D',

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

     x <- cbind(rnorm(10),rnorm(10),rnorm(10))
     plot3D(x)
     x0 <- x*0
     arrows3D(x0,x)

