suppressMessages(library(plotly))
## Warning: package 'plotly' was built under R version 3.5.3
## Warning: package 'ggplot2' was built under R version 3.5.3
suppressMessages(library(tidyr))
## Warning: package 'tidyr' was built under R version 3.5.3
suppressMessages(library(dplyr))
## Warning: package 'dplyr' was built under R version 3.5.3
# dataset is 'airquality' here
data(airquality)
# designing the first 3-dimensional plot
tm <- plot_ly(airquality,x=~Month, y=~Temp, z=~Ozone,color=~Month, mode= "markers",type = "scatter3d") %>% layout(title = "Ozone, Temperature correlation by Month")
tm
## Warning: Ignoring 37 observations