I\'m trying to add_trace ad each loop, but I get only one plot with multiplies lines on over each other.
mean <- -0.0007200342 sd <- 0.3403711 N=10 T
The plot_ly and add_trace functions have an evaluation = FALSE option that you can change to TRUE, which should fix the scope issues.
plot_ly
add_trace
evaluation = FALSE
TRUE