Re: [R] Program to produce multiple plots

2020-03-30 Thread Eric Berger
Another comment: if you are running your program in RStudio, it will create the sequence of plots but you need to "page back" to see them. Click the "Plots" tab and notice there are two arrows: back (pointing to the left) and forward (pointing to the right) HTH, Eric On Mon, Mar 30, 2020 at 5:04

Re: [R] Program to produce multiple plots

2020-03-30 Thread Richard M. Heiberger
you probably forgot the print() statement. Both lattice and ggplot require a print() in this situation. See the help files. On Mon, Mar 30, 2020 at 10:04 Ashim Kapoor wrote: > Dear David, > > Try this :- > par(mfrow=c(1,2)) > hist(rnorm(100)) > hist(rnorm(100,100,1)) > > Best Regards, > Ashim >

Re: [R] Program to produce multiple plots

2020-03-30 Thread Ashim Kapoor
Dear David, Try this :- par(mfrow=c(1,2)) hist(rnorm(100)) hist(rnorm(100,100,1)) Best Regards, Ashim On Mon, Mar 30, 2020 at 7:16 PM David wrote: > I wrote a little program that asked to produce two plots, but when I ran > it, I saw only the second plot. Is there a way to write a program th