The ggplot object uses a formatter in scale_colour_manual (labels = ptd_title_case) to convert text like "common_cause" to "Common Cause". It also hides the title "point_colour".
While we base the plotly chart off of the ggplot code, it does not use the formatter in the legend, and it also shows the legend title. This could do with being cleaned up, but it's not immediately obvious from the plotly docs how to do this
The ggplot object uses a formatter in scale_colour_manual (labels = ptd_title_case) to convert text like "common_cause" to "Common Cause". It also hides the title "point_colour".
While we base the plotly chart off of the ggplot code, it does not use the formatter in the legend, and it also shows the legend title. This could do with being cleaned up, but it's not immediately obvious from the plotly docs how to do this