I am looking to take advantage of the awesome features in Plotly but I am having a hard time figuring out how to add a regression plane to a 3d scatter plot. Here is an exa
I used the same code, but I got this error message when I run the last step to get the surface:
Error in traces[[i]][[obj]] : attempt to select less than one element in get1index
So I add one term in the "add_trace" as:
inherit = F
at the end.