Skip to content

Commit 987eefb

Browse files
committed
Oops, export style()
1 parent 4cdde72 commit 987eefb

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export(scatter3d)
4242
export(scene)
4343
export(signup)
4444
export(stream)
45+
export(style)
4546
export(subplot)
4647
export(surface)
4748
export(toRGB)

R/style.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ is.style <- function(x) inherits(x, "style")
55
#' @param traces numeric vector. Which traces should be modified?
66
#' @param ... arguments coerced to a list and used to modify trace(s)
77
#' @author Carson Sievert
8+
#' @export
89
#'
910

1011
style <- function(traces = 1, ...) {

man/subplot.Rd

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22
% Please edit documentation in R/subplots.R
33
\name{subplot}
44
\alias{subplot}
5-
\title{plotly subplots}
5+
\title{View multiple plots in a single view}
66
\usage{
7-
subplot(x)
7+
subplot(..., nrows = 1, which_layout = 1)
88
}
99
\arguments{
10-
\item{x}{a list of plotly (and optionally layout) objects}
11-
}
12-
\description{
13-
plotly subplots
10+
\item{...}{any number of plotly objects}
11+
12+
\item{nrows}{number of rows for laying out plots in a grid-like structure.
13+
Only used if no domain is specified in either \link{xaxis} or \link{yaxis}}
14+
15+
\item{which_layout}{adopt the layout of which plot?}
1416
}
15-
\examples{
16-
\dontrun{
17-
p1 <- ggplotly(qplot(rnorm(100)))
18-
p2 <- histogram(rnorm(100), xaxis(domain = c(0, 0.5)))
19-
ps <- list(
20-
plot1 = p1,
21-
plot2 = p2,
22-
layout(plot1 = domain(0, ))
23-
)
17+
\value{
18+
A plotly object
2419
}
20+
\description{
21+
View multiple plots in a single view
2522
}
2623
\author{
2724
Carson Sievert

0 commit comments

Comments
 (0)