Convert a ggplot to a list.
gg2list(p, width = NULL, height = NULL, tooltip = "all", source = "A")
ggplot2 plot.
Width of the plot in pixels (optional, defaults to automatic sizing).
Height of the plot in pixels (optional, defaults to automatic sizing).
a character vector specifying which aesthetic tooltips to show in the tooltip. The default, "all", means show all the aesthetic tooltips (including the unofficial "text" aesthetic).
Only relevant for event_data.
a 'built' plotly object (list with names "data" and "layout").