Re: [R] shading (fill) the area between two lines

2018-01-11 Thread Duncan Murdoch
On 11/01/2018 7:43 PM, AbouEl-Makarim Aboueissa wrote: Dear All: I am trying to shade the area between the two lines; *line 1* and *line 2*. The help page for polygon() gives some examples of this. Duncan Murdoch You can use this code as an example. x100<-c(-1,1,2,3,4,5,6,3) y100<-c(4,

[R] shading (fill) the area between two lines

2018-01-11 Thread AbouEl-Makarim Aboueissa
Dear All: I am trying to shade the area between the two lines; *line 1* and *line 2*. You can use this code as an example. x100<-c(-1,1,2,3,4,5,6,3) y100<-c(4,5,3,1,4,4,2,-1) plot(x100,y100) *# line1* abline(a=-(Beta0-1)/Beta[1,2], b=-Beta[1,1]/Beta[1,2], lwd = 3, col="skyblue", lty