I try to plot 3D scatter plot and I am using scatterplot3d
. The ylab title is too far in end of the right side it is not close to the plot.
require(scatterplot3d)
require(plotrix)
with(wc, {
s3d <- scatterplot3d(W, G, C, # x y and z axis
color = "blue", pch = 19,
type = "h",
main = "3-D Scatterplot",
xlab = "W",
ylab = "G",
zlab = "C")
})
How to change the position of ylab title?
I try suggestion as @pascal proposed. But I stumble upon error
Error in r[i1] - r[-length(r):-(length(r) - lag + 1L)] : non-numeric argument to binary operator
. As it is solved in this link
a link!
Could you explain me what is the role of this part of the script.
dims <- ("usr")
x <- dims[1]+ 0.9*diff(dims[1:2])
y <- dims[3]+ 0.08*diff(dims[3:4])
text(x,y,expression(),srt=45)
Thanks guys for the help I find the mistake in my code. I really appreciate your help. Special thanks to @Pascal.