Usually you would want to use the legend to define subsets from a specific category, say a column in a dataframe. Examples from Plotly:   I suppose the most straightforward approach is a `title()` method for the legend.