I’m trying to plot my dataframe as a 3D surface in R.
I have 3 columns, but I don’t know what the syntax is like, as the example only shows:
plot_ly(z = volcanoes, type=“surface”)
The documentation says there are x/y/z and xsrc/ysrc/zsrc parameters, but how do I use these?
I always end up with an empty plot when I try:
plot_ly(df, xsrc=df$a, ysrc=df$b, zsrc=df$c)
plot_ly(x=df$a, y=df$b, z=df$c)