R中的3d矢量绘图和可视化

问题描述:

有人知道R中可以绘制3D向量的任何程序包吗?我想在3维数据集上绘制一些矢量。我知道scatterplot3d 看起来应该可以完成这项工作,但是我没有看到任何专门针对矢量的文档(我也希望能够更改矢量的来源)。

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).

rgl 是用于3D绘图的出色软件包。它非常类似于2d绘图,只是您使用 plot3d 而不是 plot 关于这个问题的答案提出了一种绘制箭头的方法在rgl中。

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.