How to plot multiple interactive plots in one window using R? -


i use iplot (gcr more precisely) draw multiple interactive bar charts , scatter diagrams analysis. however, each execution, windows must arranged manually (may exist automatic way not aware of).

so, wondering if there way put couple of them in 1 large window. know possible give window size , position. however, have multiple windows irritating.

thanks

i'm not aware of way combine 2 plots in one. however, using iplot.location() , iplot.size, mentioned:

library(iplots) iplotsrestore <- function(setting) {    invisible(lapply(1:length(iplot.list()), function(x) {     iplot.location(x = setting[[x]]['x'], y = setting[[x]]['y'], plot = iplot.list()[[x]])     iplot.size(width = setting[[x]]['width'], height = setting[[x]]['height'], plot = iplot.list()[[x]])   })) }  iplotsstore <- function() {   setting <- lapply(iplot.list(), function(x) iplot.location(plot = x))   return(setting) }   setting <- list(structure(c(542, 527, 432, 416), .names = c("x", "y", "width", "height")), structure(c(10, 0, 432, 416), .names = c("x", "y", "width", "height")), structure(c(885, 0, 873, 609), .names = c("x",  "y", "width", "height"))) invisible(lapply(iplot.list(), iplot.off)) # delete plots ihist(iris$sepal.width) # recreate 3 demo plots ihist(iris$petal.length) ihist(iris$sepal.width) iplotsrestore(setting) # recreate old window settings 

use iplotsstore list of window parameters current plots, may save file. use iplotsrestore restore window parameters again.


Comments