I'd like positioning the axes label with package plot3D. In my problem, the axes label are positioned very close to the graphic. I tried to use mtext
, but it doesn't work in plot3D.
#Original version
library(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')
#My attempt to solve (It isn't work)
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)