how to make vertical plane with surface plot (x=0 or y=0)? Found similar question here Several surfaces / planes for x values with no answer… unfortunately.
height = 200
x= 1:ncol(volcano)
y = seq(0.001,height*0.001,by=0.001)
altitude = matrix(,height,ncol(volcano))
for (i in 1:nrow(z)) {
altitude[i,] = i
}
color = matrix(runif(height),height,ncol(volcano))
p <- plot_ly(z=volcano, type = “surface”, showscale = T)
p <- add_trace(x = x, y = y, z = altitude, type = “surface”, surfacecolor = color, showscale = F)
p