Black Lives Matter. Please consider donating to Black Girls Code today.

Suppressing legend messes Y2 axis


I am using Plotly+Shiny to quicly explore some datasets.
I tried suppressing the legend as it takes unnecessary space and I don’t need it.
To my surprises, this messes up the scondary Y axis. The title now overlaps the ticks and the scale is all wrong.

Axis with legend


The same after applying showlegend=FALSE


This looks like a bug. Any comment or solution ?