[R] two graphs

John Kane jrkrideau at yahoo.ca
Tue Jan 8 00:41:03 CET 2008


?par  and have a look at mfrow 

par() controls a vast amount of plotting options for
regular graphics

Example
aa <- rnorm(100, 25, 4)
bb <- aa/2
 par(mfrow=c(2,1))
hist(aa)
plot(bb)


--- Georg Ehret <georgehret at gmail.com> wrote:

> Dear R community,
>     I am plotting a histogram and would wish to
> display another variable of
> the same dataset in a very narrow heatmap just below
> the x-axis. Never mind
> the specifics of my task: How can I draw a second
> graph/image just below a
> first graph/image?
> 
> Thank you!
> Georg.
> ***************
> Georg Ehret
> JHU
> Baltimore, MD 21043, USA
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>




More information about the R-help mailing list