[R] Three plots with logged X-axis in the same plot
jim at bitwrit.com.au
Thu May 16 14:13:09 CEST 2013
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