R / rgl - 如何移动3d轴标签?

时间:2017-03-11 06:40:48

标签: r 3d axis-labels rgl

(我正在使用rgl。)我想在下面移动轴标签:

var comment = HttpUtility.JavaScriptStringEncode(model.Comment);

到显示的位置:

Red arrows showing that I want the labels next to the positive x,y,and z axes

基本上,我希望标签位于"末端"正x,y和z轴。我该怎么做?

1 个答案:

答案 0 :(得分:2)

您可以尝试这样的事情:

plot3d(1,2,3, xlab="", ylab="", zlab="", xlim=c(-4,4), ylim=c(-4,4), zlim=c(-4,4))
abclines3d(x = matrix(0, ncol=3), a = diag(3), col="black", lwd=3)
text3d(matrix(c(3,0.2,0.2,4,-6,4,0.1,0.1,3),ncol=3),texts=c('y', 'x', 'z'))

enter image description here