I'm trying to change the color using a specific column (characters) with plot3d
(rgl), but it don't change color and just show white spheres. I used col=as.numeric()
because saw a example with this. The only message I get is
NAs introduced by coercion.
I'm working with R notebook.
library("rgl")
with(inventory_wop,
plot3d(dbh1.a,ht,wd,
xlab = "Diameter",
ylab="Height",
zlab="Wood density",
type="s",
size = 0.5,
col=as.numeric(site)))
rglwidget()