✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Dashed zeroline

Hi all -
I’m new to Plotly, previously having worked a fair bit with ggplot2 and the base R plots.

My question is, is it possible to make the zero line a dashed line? If not, are there any suitable workarounds? Its not a game breaker for me, but I’m trying to mimic some plots made with ggplot2 and would like to maintain some consistency.

Thanks!

Edit -

Solved by adding a %>% add_trace with a line element. I had previously tried this, but messed up the syntax.