Drawing mean connect line on box plots


Hello all,

Is there a way w/the python plotly library to draw a line connecting the means of the different categorical groups of a box plot (see black line in screenshot example above)? If there isn’t, does anyone know of the best work-around?

Thanks in advance!!!

I ended up finding my own solution! See attached image as final result. For anyone who is curious. I basically followed this stackoverflow link

This plotly code link helped me get familiar with the add_trace() and go.Box() functions which I ultimately used.

Final solution was a box plot and scatterplot w/markers and lines on the same figure.