R中的3d矢量绘图和可视化 [英] 3d Vector plotting and visualization in R
本文介绍了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.
这篇关于R中的3d矢量绘图和可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文