add_legendgrouptitle | R Documentation |
Add legend group titles
add_legendgrouptitle(p, traceInfo = NULL, ...)
p |
a plotly plot. |
traceInfo |
a data frame with legendgroup (i.e. title) and trace (i.e. trace number) columns. Default=NULL will be supplied by calling get_traceInfo(p). 'traceInfo$legendgroup' is a factor whose level sequence determines legend group sequence. |
... |
other parameters passed to all 'style(legendgrouptitle=list(...),)'. |
a plotly plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.