Re: [R] How to draw arrows or segment lines in 3 dimensional graph

2008-09-23 Thread Yihui Xie
Hi, You need to converts coordinates from 3D (x, y, z) to 2D-projection (x, y), then use segments or arrows or other 2D low-level plot commands. Such transformation functions are very common in the returned value of a 3D plot function, e.g. scatterplot3d() in the package 'scatterplot3d' (there's a

[R] How to draw arrows or segment lines in 3 dimensional graph

2008-09-23 Thread yabado
Hi I have a dataset which is like this: ID X1 Y1 Z1 X2 Y2 Z2 1 32 127 85 31.7121 85 2 37.9153 88 34.6137 90 3 36.8134 88 36.1155 97 4 31.4136 87 29 113 70