Without supplying a value to the labels
argument in axis3d
, I get an axis with six tick marks. Since you supply a vector with only four values to the labels
argument, it looks like axis3d
recycles those values to cover all the tick marks.
Tell axis3d
at what data values you'd like to place the tick marks by supplying a value to the at
argument:
axis3d('x--', at = x, labels=row.names(rmatrix),color="black")
p.s. I had to add the following line before rgl.surface()
to avoid getting a segfault
rgl.open()