09/09/2020

Code for plot

library(plotly)
plot_ly(mtcars, 
        x = mtcars$wt, 
        y = mtcars$mpg, 
        z = mtcars$cyl, 
        type = "scatter3d", 
        color = mtcars$disp
)

Plot