Skip to content

Commit 1e13bc7

Browse files
committed
Ran roxygenize() from roxygen2
1 parent d88ff3d commit 1e13bc7

15 files changed

Lines changed: 83 additions & 61 deletions

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
# Generated by roxygen2 (4.0.1): do not edit by hand
2+
13
export(gg2list)
24
export(group2NA)
35
export(layer2traces)
46
export(paramORdefault)
57
export(plotly)
8+
export(set_credentials_file)
9+
export(show_credentials_file)
610
export(signup)
711
export(toRGB)
812
import(RCurl)

tools.R renamed to R/tools.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ get_credentials_file <- function(args=c()) {
4444

4545

4646
#' Read and print Plotly credentials file, wrapping get_credentials_file()
47+
#' @export
4748
show_credentials_file <- function(args=c()) {
4849
print("Your credentials file:")
4950
print(get_credentials_file(args))
@@ -55,6 +56,7 @@ show_credentials_file <- function(args=c()) {
5556
#' @param api_key
5657
#' @param stream_ids
5758
#' @return List of keyword-value pairs (credentials)
59+
#' @export
5860
#' @examples
5961
#' \dontrun{
6062
#' set_credentials_file("username", "api_key", list("foo", "bar))

man/aes2line.Rd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\docType{data}
23
\name{aes2line}
34
\alias{aes2line}
45
\title{Convert ggplot2 aes to line parameters.}
5-
\format{\preformatted{ Named chr [1:3] "dash" "color" "width"
6-
- attr(*, "names")= chr [1:3] "linetype" "colour" "size"
6+
\format{\preformatted{ Named chr [1:4] "dash" "color" "width" "shape"
7+
- attr(*, "names")= chr [1:4] "linetype" "colour" "size" "direction"
78
}}
89
\usage{
910
aes2line

man/aes2marker.Rd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\docType{data}
23
\name{aes2marker}
34
\alias{aes2marker}

man/geom2trace.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\docType{data}
23
\name{geom2trace}
34
\alias{geom2trace}
45
\title{Convert basic geoms to traces.}
5-
\format{\preformatted{List of 3
6+
\format{\preformatted{List of 5
67
$ path :function (data, params)
78
$ polygon:function (data, params)
89
$ point :function (data, params)
10+
$ bar :function (data, params)
11+
$ step :function (data, params)
912
}}
1013
\usage{
1114
geom2trace

man/gg2list.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\name{gg2list}
23
\alias{gg2list}
34
\title{Convert a ggplot to a list.}
45
\usage{
56
gg2list(p)
67
}
78
\arguments{
8-
\item{p}{ggplot2 plot.}
9+
\item{p}{ggplot2 plot.}
910
}
1011
\value{
1112
list representing a ggplot.

man/group2NA.Rd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\name{group2NA}
23
\alias{group2NA}
34
\title{Drawing ggplot2 geoms with a group aesthetic is most efficient in
@@ -7,17 +8,17 @@ vectors with NA.}
78
group2NA(g, geom)
89
}
910
\arguments{
10-
\item{g}{list of geom info with g$data$group.}
11+
\item{g}{list of geom info with g$data$group.}
1112

12-
\item{geom}{change g$geom to this.}
13+
\item{geom}{change g$geom to this.}
1314
}
1415
\value{
1516
list of geom info.
1617
}
1718
\description{
18-
Drawing ggplot2 geoms with a group aesthetic is most
19-
efficient in plotly when we convert groups of things that
20-
look the same to vectors with NA.
19+
Drawing ggplot2 geoms with a group aesthetic is most efficient in
20+
plotly when we convert groups of things that look the same to
21+
vectors with NA.
2122
}
2223
\author{
2324
Toby Dylan Hocking

man/layer2traces.Rd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\name{layer2traces}
23
\alias{layer2traces}
34
\title{Convert a layer to a list of traces. Called from gg2list()}
45
\usage{
56
layer2traces(l, d, misc)
67
}
78
\arguments{
8-
\item{l}{one layer of the ggplot object}
9+
\item{l}{one layer of the ggplot object}
910

10-
\item{d}{one layer of calculated data from
11-
ggplot2::ggplot_build(p)}
11+
\item{d}{one layer of calculated data from ggplot2::ggplot_build(p)}
1212

13-
\item{misc}{named list.}
13+
\item{misc}{named list.}
1414
}
1515
\value{
16-
list representing a layer, with corresponding aesthetics,
17-
ranges, and groups.
16+
list representing a layer, with corresponding aesthetics, ranges, and groups.
1817
}
1918
\description{
2019
Convert a layer to a list of traces. Called from gg2list()

man/lty2dash.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\docType{data}
23
\name{lty2dash}
34
\alias{lty2dash}
45
\title{Convert R lty line type codes to plotly "dash" codes.}
5-
\format{\preformatted{ Named chr [1:25] "solid" "dash" "dot" "dashdot" "longdash" ...
6+
\format{\preformatted{ Named chr [1:25] "solid" "dash" "dot" "dashdot" "longdash" "longdashdot" ...
67
- attr(*, "names")= chr [1:25] "1" "2" "3" "4" ...
78
}}
89
\usage{

man/paramORdefault.Rd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
% Generated by roxygen2 (4.0.1): do not edit by hand
12
\name{paramORdefault}
23
\alias{paramORdefault}
34
\title{convert ggplot params to plotly.}
45
\usage{
56
paramORdefault(params, aesVec, defaults)
67
}
78
\arguments{
8-
\item{params}{named list ggplot names -> values.}
9+
\item{params}{named list ggplot names -> values.}
910

10-
\item{aesVec}{vector mapping ggplot names to plotly
11-
names.}
11+
\item{aesVec}{vector mapping ggplot names to plotly names.}
1212

13-
\item{defaults}{named list ggplot names -> values.}
13+
\item{defaults}{named list ggplot names -> values.}
1414
}
1515
\value{
1616
named list.

0 commit comments

Comments
 (0)