Skip to content
Prev 378298 / 398502 Next

large number of scrollable histograms....

Hi

Yes, you should get multipage pdf, each page populated by single call to plot function.

However I am not sur if your proposal with function will work.

I usually do simply



pdf("sample.pdf", 7, 5)

for (i in 1:n) {

hist(L[[i]])

}

dev.off()

Cheers
Petr

From: akshay kulkarni <akshay_e4 at hotmail.com>
Sent: Wednesday, January 23, 2019 8:01 AM
To: PIKAL Petr <petr.pikal at precheza.cz>; R help Mailing list <r-help at r-project.org>
Subject: Re: large number of scrollable histograms....

dear pikal,
                    Thanks for the suggestion....
I have checked ?pdf.  The syntax is:
So, I surmise that instead of one hist function in the second line, if I include multiple histograms through a loop, it would write ALL histograms to sample.pdf (something like this):
Am I right? Would this pdf document(sample.pdf)  be scrollable?



very many thanks for your time....
yours sincerely,
AKSHAY M KULKARNI