Date of creation of the file
date()
## [1] "Wed Jan 3 17:12:51 2024"
library(plotly)
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
custom_colorscale <- list(
c(0, "green"),
c(0.25, "lightgreen"),
c(0.5, "yellow"),
c(0.75, "orange"),
c(1, "red")
)
plot_ly(z=volcano, type="surface", colorscale = custom_colorscale) %>%
layout(scene = list(colorbar = list(title = "Elevation",
zmin = 100, zmax = 180)))