Reputation: 81
Anyone know of any packages in R that can plot 3D vectors? I would like to plot some vectors over a 3 dimensional data set. I know scatterplot3d looks like it should be able to do the job, but I didn't see any documentation for vectors specifically (I would like to be able to change the origin of vectors as well).
Upvotes: 5
Views: 7055
Reputation: 652
rgl is a great package for 3d plotting. It is very like 2d plotting except that you use plot3d
instead of plot
. This answer on SO suggests a way to draw arrows in rgl.
Upvotes: 4