我想在plot3D中定位axis标签。在我的问题中,轴标签位于非常靠近图形的位置。我尝试使用mtext
,但它在plot3D
中无效。
x <- matrix(runif(10000), ncol = 100)
par(mar=rep(0,4))
plot3D::hist3D(z=x/sum(x), colkey=list(plot=FALSE), xlab = 'd1', ylab = 'd2', zlab = 'd3')
x <- matrix(runif(10000), ncol = 100)
par(mar=rep(0,4))
plot3D::hist3D(z=x/sum(x), colkey=list(plot=FALSE), xlab = '', ylab = '', zlab = '')
mtext('d1', side = 1, line = 3)
mtext('d2', side = 2, line = 3)
mtext('d2', side = 3, line = 3)