Add Regression Plane to 3d Scatter Plot in Plotly

后端 未结 4 1997
渐次进展
渐次进展 2020-12-15 08:29

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

4条回答
  •  旧巷少年郎
    2020-12-15 09:06

    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.

提交回复
热议问题