Skip to content
Prev 378303 / 398502 Next

large number of scrollable histograms....

Hi akshay Kulkarni, I just worked through this great tutorial the other day, hope this helps!

WHP

https://www.r-bloggers.com/how-to-combine-multiple-ggplot-plots-to-make-publication-ready-plots/



From: R-help <r-help-bounces at r-project.org> On Behalf Of Eric Berger
Sent: Tuesday, January 22, 2019 8:59 AM
To: PIKAL Petr <petr.pikal at precheza.cz>
Cc: R help Mailing list <r-help at r-project.org>
Subject: Re: [R] large number of scrollable histograms....

Another alternative is to use ggplot2 to create the various plots, then put
them into
a list and use cowplot::plot_grid to plot the grid of plots with a
specified number of
rows and columns. Here's some pseudo code to give you the general idea

Step 1: generate the plots and put them into a list
for ( i in 1:(nrow*ncol) )
pL[[ i ]] <- ggplot( ... )

Step 2: display the plots in a grid
print( cowplot::plot_grid( plotlist=pL, nrow=nrow, ncol=ncol ) )
On Tue, Jan 22, 2019 at 3:49 PM PIKAL Petr <mailto:petr.pikal at precheza.cz> wrote:

            
______________________________________________
mailto:R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Confidentiality Notice This message is sent from Zelis. This transmission may contain information which is privileged and confidential and is intended for the personal and confidential use of the named recipient only. Such information may be protected by applicable State and Federal laws from this disclosure or unauthorized use. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, review, discussion, copying, or taking any action in reliance on the contents of this transmission is strictly prohibited. If you have received this transmission in error, please contact the sender immediately. Zelis, 2018.
Message-ID: <BN7PR02MB50734F57FE89BF88DA806E33EA990@BN7PR02MB5073.namprd02.prod.outlook.com>
In-Reply-To: <CAGgJW75ytAaDhn4hTvtJNwBe2nCRJ7nuCzYCmoeNeG-ss2ptFg@mail.gmail.com>