5

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.

enter image description here

Any help is appreciated.

Malvrok
  • 369
  • 4
  • 16

0 Answers0