Dear Listmembers, I do have a multiplot with 1 row and 4 columns (4 scatter plots with same x- and y-axe plotted in one row). I would like to draw a horizontal line across the whole multiplot at a certain y-value. Unfortunately the normal abline command stops between the plot. I hope my problem is clear and there is somebody who can help me Thanks in advance Thomas H.
Thomas Hoffmann wrote:> Dear Listmembers, > > I do have a multiplot with 1 row and 4 columns (4 scatter plots with > same x- and y-axe plotted in one row). I would like to draw a horizontal > line across the whole multiplot at a certain y-value. Unfortunately the > normal abline command stops between the plot. > > I hope my problem is clear and there is somebody who can help mepar(mfrow=c(1,4)) replicate(4, plot(1:10)) par(xpd=NA) abline(h=5) Uwe Ligges> Thanks in advance > Thomas H. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
It may be as simple as setting par(xpd=NA) see ?par for what that does. If you want more control (prevent the line from going through titles, etc) then look at the examples for the cnvrt.coords function in the TeachingDemos package. Hope this helps, -----Original Message----- From: r-help-bounces@stat.math.ethz.ch on behalf of Thomas Hoffmann Sent: Mon 5/29/2006 10:10 AM To: r-help@stat.math.ethz.ch Subject: [R] line over multiplot Dear Listmembers, I do have a multiplot with 1 row and 4 columns (4 scatter plots with same x- and y-axe plotted in one row). I would like to draw a horizontal line across the whole multiplot at a certain y-value. Unfortunately the normal abline command stops between the plot. I hope my problem is clear and there is somebody who can help me Thanks in advance Thomas H. ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html [[alternative HTML version deleted]]