@@ -38,6 +38,7 @@ plotDataExplorer <- function(plot_obj, title, ggtheme, theme_config, plotly = FA
3838# ' @param title plot title
3939# ' @param ggtheme complete ggplot2 themes
4040# ' @param theme_config a list of configurations to be passed to \link[ggplot2]{theme}
41+ # ' @param plotly if \code{TRUE}, convert ggplot to interactive plotly object (requires the \pkg{plotly} package). Default is \code{FALSE}.
4142# ' @param page_layout a list of page indices with associated plot indices
4243# ' @param nrow number of rows per page
4344# ' @param ncol number of columns per page
@@ -49,7 +50,7 @@ plotDataExplorer <- function(plot_obj, title, ggtheme, theme_config, plotly = FA
4950# ' @import gridExtra
5051# ' @export
5152# ' @seealso \link{plotDataExplorer} \link{plotDataExplorer.single} \link{plotDataExplorer.multiple}
52- plotDataExplorer.grid <- function (plot_obj , title , ggtheme , theme_config , page_layout , nrow , ncol , plotly = FALSE , ... ) {
53+ plotDataExplorer.grid <- function (plot_obj , title , ggtheme , theme_config , plotly = FALSE , page_layout , nrow , ncol , ... ) {
5354 plot_list <- lapply(plot_obj , function (p ) {
5455 p +
5556 eval(ggtheme ) +
@@ -98,6 +99,7 @@ plotDataExplorer.grid <- function(plot_obj, title, ggtheme, theme_config, page_l
9899# ' @param title plot title
99100# ' @param ggtheme complete ggplot2 themes
100101# ' @param theme_config a list of configurations to be passed to \link[ggplot2]{theme}
102+ # ' @param plotly if \code{TRUE}, convert ggplot to interactive plotly object (requires the \pkg{plotly} package). Default is \code{FALSE}.
101103# ' @param \dots other arguments to be passed
102104# ' @return invisibly return the ggplot object
103105# ' @keywords internal
@@ -133,6 +135,7 @@ plotDataExplorer.single <- function(plot_obj, title, ggtheme, theme_config, plot
133135# ' @param title plot title
134136# ' @param ggtheme complete ggplot2 themes
135137# ' @param theme_config a list of configurations to be passed to \link[ggplot2]{theme}
138+ # ' @param plotly if \code{TRUE}, convert ggplot to interactive plotly object (requires the \pkg{plotly} package). Default is \code{FALSE}.
136139# ' @param \dots other arguments to be passed
137140# ' @return invisibly return the named list of ggplot objects
138141# ' @keywords internal
@@ -141,7 +144,7 @@ plotDataExplorer.single <- function(plot_obj, title, ggtheme, theme_config, plot
141144# ' @importFrom stats setNames
142145# ' @export
143146# ' @seealso \link{plotDataExplorer} \link{plotDataExplorer.grid} \link{plotDataExplorer.single}
144- plotDataExplorer.multiple <- function (plot_obj , title , ggtheme , theme_config , page_layout , facet_wrap_args = list (), plotly = FALSE , ... ) {
147+ plotDataExplorer.multiple <- function (plot_obj , title , ggtheme , theme_config , plotly = FALSE , page_layout , facet_wrap_args = list (), ... ) {
145148 n <- length(page_layout )
146149 plot_list <- lapply(setNames(seq.int(n ), paste0(" page_" , seq.int(n ))), function (i ) {
147150 plot_obj [[i ]] +
0 commit comments