forked from plotly/plotly.R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotly_POST.Rd
More file actions
45 lines (44 loc) · 885 Bytes
/
plotly_POST.Rd
File metadata and controls
45 lines (44 loc) · 885 Bytes
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
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plotly_POST.R
\name{plotly_POST}
\alias{plotly_POST}
\title{Create/Modify plotly graphs}
\usage{
plotly_POST(x)
}
\arguments{
\item{x}{either a plotly object or a list.}
}
\value{
An R object created by mapping the JSON content of the plotly API
response to its R equivalent.
}
\description{
POST messages to the clientresp resource of plotly's REST API. Unlike \link{ggplotly},
this function does not translate ggplot objects.
}
\examples{
\dontrun{
# If you want, you can still construct lists by hand...
trace1 <- list(
x = c(1, 2, 3, 4),
y = c(10, 15, 13, 17),
type = "scatter"
)
trace2 <- list(
x = c(1, 2, 3, 4),
y = c(16, 5, 11, 9),
type = "scatter"
)
plotly_POST(list(trace1, trace2))
}
}
\author{
Carson Sievert
}
\references{
https://plot.ly/rest/
}
\seealso{
\link{signup}
}