Skip to content

Commit 3bddd5a

Browse files
committed
Update docstring for gg2list()
1 parent e6f5aa7 commit 3bddd5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ggplotly.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ markUnique <- as.character(unique(unlist(markLegends)))
7070
#' Convert a ggplot to a list.
7171
#' @import ggplot2
7272
#' @param p ggplot2 plot.
73-
#' @return list representing a ggplot.
73+
#' @return figure object (list with names "data" and "layout").
7474
#' @export
75-
gg2list <- function(p){
75+
gg2list <- function(p) {
7676
if(length(p$layers) == 0) {
7777
stop("No layers in plot")
7878
}

0 commit comments

Comments
 (0)