reorderTraceByLegendgrouptitles | R Documentation |
Reorder legend groups based on desired group titles in order
reorderTraceByLegendgrouptitles(p, legendgrouptitles)
p |
a plotly plot with legend group titles already there. |
legendgrouptitles |
a character vector of legend group titles in desired order |
a plotly plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.