Convert a ggplot to a list.
gg2list(p, width = NULL, height = NULL, tooltip = "all", layerData = 1,
originalData = TRUE, 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).
data from which layer should be returned?
should the "original" or "scaled" data be returned?
Only relevant for event_data.
currently not used
a 'built' plotly object (list with names "data" and "layout").