I took me a long time to understand how to use a loop into a plotly plot. The trick is to use the evaluate=TRUE option. Watch out! I don’t know why but apparently, you need to re-make the layout at each loop. Don’t forget that most of the time you can use the option color = my_groups to draw several traces. (See graph #121). Does’nt work anymore with the new version of plotly… Sorry for the inconvenienve. Please tell me if you have a solution…

Not what you are looking for ? Make a new search !


Leave a Reply

Notify of