forked from plotly/plotly.R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgg2list.Rd
More file actions
35 lines (27 loc) · 1 KB
/
gg2list.Rd
File metadata and controls
35 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplotly.R
\name{gg2list}
\alias{gg2list}
\title{Convert a ggplot to a list.}
\usage{
gg2list(p, width = NULL, height = NULL, tooltip = "all", layerData = 1,
originalData = TRUE, source = "A", ...)
}
\arguments{
\item{p}{ggplot2 plot.}
\item{width}{Width of the plot in pixels (optional, defaults to automatic sizing).}
\item{height}{Height of the plot in pixels (optional, defaults to automatic sizing).}
\item{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).}
\item{layerData}{data from which layer should be returned?}
\item{originalData}{should the "original" or "scaled" data be returned?}
\item{source}{Only relevant for \link{event_data}.}
\item{...}{currently not used}
}
\value{
a 'built' plotly object (list with names "data" and "layout").
}
\description{
Convert a ggplot to a list.
}