[R] R plot-par(mfrow=c(x,y)) on multiple pages

Sarah Goslee sarah.goslee at gmail.com
Wed Jan 20 23:05:20 CET 2016

On Wed, Jan 20, 2016 at 4:56 PM, Mohsen Jafarikia <jafarikia at gmail.com> wrote:
> Thanks very much for the comment.
> I was also wondering why all the y-axis on all 12 plots are similar to
> the first plot. I have 12 plots and scale of the values for these
> plots are different. It seems R is using the x-axis for each
> individual plot correctly but y-axis is the same for all 12 graphs.

That seems highly unlikely: R should be using different axes for
independent plots.

Please provide a reproducible example, using fake data or built-in
data, or using dput()
with your own data.

The correct answer depends on what the format actually is; you need to
use dput() or some other unambiguous way of providing sample data.

Without a reproducible example that includes some sample data provided
using dput() (fake is fine), the code you used, and some clear idea of
what output you expect, it's impossible to figure out how to help you.
Here are some suggestions for creating a good reproducible example:

> Regards,
> Mohsen
> On Wed, Jan 20, 2016 at 4:27 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote:
>> Use a device like pdf() or postscript() that supports multiple pages.
>> Or start a new default device with dev.new() so you can see two
>> figures simultaneously.
>> Sarah
>> On Wed, Jan 20, 2016 at 3:37 PM, Mohsen Jafarikia <jafarikia at gmail.com> wrote:
>>> Hello everyone:
>>> I have 12 plots that I am using par(mfrow=c(3,2)) to have 6 of them in
>>> a single page. R only prints the 6 first graph in a single page. Any
>>> comments how I can ask R to print all 12 graphs in two pages.
>>> Thanks very much,
>>> Mohsen

More information about the R-help mailing list