We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f5aa7 commit 3bddd5aCopy full SHA for 3bddd5a
R/ggplotly.R
@@ -70,9 +70,9 @@ markUnique <- as.character(unique(unlist(markLegends)))
70
#' Convert a ggplot to a list.
71
#' @import ggplot2
72
#' @param p ggplot2 plot.
73
-#' @return list representing a ggplot.
+#' @return figure object (list with names "data" and "layout").
74
#' @export
75
-gg2list <- function(p){
+gg2list <- function(p) {
76
if(length(p$layers) == 0) {
77
stop("No layers in plot")
78
}
0 commit comments