add_trace in Plotly in a loop [duplicate]
问题 This question already has an answer here : Building plotly graph in for loop not displaying all series (1 answer) Closed 3 years ago . I want to plot multiple traces in a loop without overwriting all previous traces. In this post from 2015, a solution to adding traces within a loop is presented, by setting evaluate = TRUE in the plot_ly or add_trace functions. However, as of 2017 in the newer version of plot_ly, evaluate isn't an attribute. 'scatter3d' objects don't have these attributes: