[R] line over multiplot

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon May 29 18:46:39 CEST 2006


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 me


  par(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



More information about the R-help mailing list