[R] Three plots with logged X-axis in the same plot
Patrik.Ohagen at mpa.se
Thu May 16 15:07:23 CEST 2013
Hi Jim,Thank you for your input! I am working with the text and arrow command in each of the graphs. I think it would be far to messy to plot them all in one graph (50+ point estimates and confidence intervals).
par(mfrow=c(1,3)) is a step in the proper direction but I fail to see how I can reduce the amount of unused printing area around the three graphs.
Enheten för effekt och säkerhet 4
Box 26, 751 03 Uppsala
Besöksadress: Dag Hammarskjöldsväg 42
Telefon: 018 - 17 49 24, växel: 018 - 17 46 00
Fax: 018 - 54 85 66
patrik.ohagen at mpa.se
Från: Jim Lemon [mailto:jim at bitwrit.com.au]
Skickat: den 16 maj 2013 14:13
Till: Öhagen Patrik
Kopia: r-help at r-project.org
Ämne: Re: [R] Three plots with logged X-axis in the same plot
On 05/16/2013 09:50 PM, Öhagen Patrik wrote:
> I have, say, three plots with several medical terms on the y-axis plotted against HR's on a log-scaled x-axis. In order to highlight the time profile for the different plots, I would like to "merge" (put them next to each other, if that makes sense) together the log scaled x-axises and present the data in a single plot.
> How to do it? Using par(mfrow=c(1,3)) seems to waste too much printing area.
> Any suggestions?
This appears more like a diagram with the x dimension of log heart rate
and various terms appearing the the plot space that are particular to a
value or range of that heart rate. I would first think of using the
"text" function to place the medical terms, perhaps with the "arrow"
function showing a range. It may be simpler to use the "boxed.labels"
function in the plotrix package to overlay the ranges.
More information about the R-help