[R] Is there way to multiple plots on gap.plot?

Yasir Kaheil kaheil at gmail.com
Mon Jul 28 21:31:25 CEST 2008


yeah, just use points

twogrp<-c(rnorm(5)+4,rnorm(5)+20,rnorm(5)+5,rnorm(5)+22)
 gpcol<-c(2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5)
 gap.plot(twogrp,gap=c(8,12),xlab="Index",ylab="Group values",
  main="Plot gap on Y axis",col=gpcol)
twogrp2<-c(rnorm(5)+4,rnorm(5)+20,rnorm(5)+5,rnorm(5)+22)
points(twogrp2, pch=20, cex=1.2, col=gpcol)




Arthur Roberts wrote:
> 
> Hi, all,
> 
> Does anyone now of a way to put multiple plots on gap.plot?
> 
> Much appreciated,
> Art
> 
> ______________________________________________
> 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.
> 
> 


-----
Yasir H. Kaheil
Columbia University
-- 
View this message in context: http://www.nabble.com/Is-there-way-to-multiple-plots-on-gap.plot--tp18697486p18697604.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list