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 <ashimkap...@gmail.com> wrote:

> 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 <parkh...@indiana.edu> 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 that
> > will produce multiple visible plots?
> >
> > David
> >
> > ______________________________________________
> > R-help@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.
> >
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to