I’m trying to change the colorscale of a surface plot, unfortunately without success.
scene = list(xaxis = list(title = “d1 (bohr)”), yaxis = list(title = “d2 (bohr)”), zaxis = list(title = “DG (kcal/mol”),camera = list(eye = list (x = -1.8, y = -1.8, z = 1)))
p <- plot_ly(x=x, y=y, z=ChorismateMutaseMatrix) %>% add_surface(colorscale = “Jet”)%>%layout(title = ‘Energy profile’, scene = scene)
I suspect I’m passing the colorscale variable incorrectly, but I have not found how to get it right. It’s not throwing any errors, but the surface colorscale is the default red-white-blue, rather than the Jet colorscale.
Thanks in advance for your time,