gg2list | R Documentation |
Convert a ggplot to a list.
gg2list(
p,
width = NULL,
height = NULL,
tooltip = "all",
dynamicTicks = FALSE,
layerData = 1,
originalData = TRUE,
source = "A",
...
)
p |
ggplot2 plot. |
width |
Width of the plot in pixels (optional, defaults to automatic sizing). |
height |
Height of the plot in pixels (optional, defaults to automatic sizing). |
tooltip |
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). |
dynamicTicks |
accepts the following values: |
layerData |
data from which layer should be returned? |
originalData |
should the "original" or "scaled" data be returned? |
source |
a character string of length 1. Match the value of this string
with the source argument in |
... |
currently not used |
a 'built' plotly object (list with names "data" and "layout").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.