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]]
?layout check: example(layout) to see its features. b On Jan 7, 2008, at 5:06 PM, Georg Ehret 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.
Try use args. 'position' and 'more'
h1<-hist()
h2<-hist()
print(h1,position=c(0,0,1,1),more=T)
print(h2,position=c(,,,)
Weidong Gu,
University of Alabama, Birmingham
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Georg Ehret
Sent: Monday, January 07, 2008 4:06 PM
To: r-help
Subject: [R] two graphs
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.
?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. >