Just stumbled on this beautiful Surface plot that can be made using
The code is fairly straight forward.
library(plotly) # volcano is a numeric matrix that ships with R plot_ly(z = volcano, type = "surface") kd <- with(MASS::geyser, MASS::kde2d(duration, waiting, n = 50)) with(kd, plot_ly(x = x, y = y, z = z, type = "surface"))
The output is this cool interactive chart!
Subscribe to Santosh writes here
Get the latest posts delivered right to your inbox