data <- tomerdata
Add a new column with color
mycolors <- c('royalblue1', 'darkcyan', 'oldlace')
data$color <- mycolors[ as.numeric(data$Home) ]
Plot
plot3d(
x=data$Home.Length
, y=data$Age.Width
, z=data$Average_Grade.Length
,
col = data$color,
type = 's',
radius = .1,
xlab="Home Length", ylab="Age Width", zlab="Average_Grade Length")
rglwidget()
htmlwidgets::saveWidget(rglwidget(width = 520, height = 520),
file = "HtmlWidget/3dscatter.html",
libdir = "libs",
selfcontained = FALSE
)
like you guys can see thats the code that i am trying to use to make 3d plot like this one:
but unfortunately all i got is wired shape that
when i click on the screen its move and doing wired shapes..
i dont know how to fix that
and i am looking for help.
thank you guys and have a good evening