I have been trying to create a 3d surface with plotly but I couldn't. What I did is the following:
dataf <- data.frame(x=as.numeric(1:50), y=as.numeric(1:50), z=as.numeric(1:5))
And then
plot_ly() %>% add_trace(data = dataf, x=dataf$x, y=dataf$y, z=dataf$z, type="mesh3d" )
But the problem is that it prints me an empty graph.
Any help is appreciated.