add_legendgrouptitle: Add legend group titles

View source: R/plotly.R

add_legendgrouptitleR Documentation

Add legend group titles

Description

Add legend group titles

Usage

add_legendgrouptitle(p, traceInfo = NULL, ...)

Arguments

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(...),)'.

Value

a plotly plot


tpemartin/econIDV documentation built on July 2, 2023, 7:36 p.m.