18 May 2021

Creating 3d plot of trees dataset using the Girth,Height and Volume variables

suppressPackageStartupMessages(library(plotly))
p1<-plot_ly(trees, x = trees$Girth ,y=trees$Height, z = trees$Volume,
            color=~Height,size=~Girth)

Show 3d scatter plot

Thank You