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. 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 >>
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: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-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 >>>
Hi Mohsen, I'll have a wild guess at this. I suspect that you have either calculated a value for the ylim= argument or used explicit values for ylim= in the first plot, then propagated the error by copying and pasting. Jim On Thu, Jan 21, 2016 at 8:56 AM, 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. > > Regards, > Mohsen > > >[[alternative HTML version deleted]]
Dear Jim, Your wild guess was a good guess :=) Thanks to you and Sarah for your comments. Regards, Mohsen On Wed, Jan 20, 2016 at 6:08 PM, Jim Lemon <drjimlemon at gmail.com> wrote:> Hi Mohsen, > I'll have a wild guess at this. I suspect that you have either calculated a > value for the ylim= argument or used explicit values for ylim= in the first > plot, then propagated the error by copying and pasting. > > Jim > > On Thu, Jan 21, 2016 at 8:56 AM, 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. >> >> Regards, >> Mohsen >> >> >