search for: a2type

Displaying 1 result from an estimated 1 matches for "a2type".

Did you mean: __type
2011 Nov 18
1
Producing plot using polygon function
...####################################################################################### x<-vector() y<-vector() temp_time<-vector() for(i in 1:length) { if(a2[i]>a3[i]) { j<-j+1 x[j]<-a2[i] y[j]<-a3[j] temp_time<-time[i] } } time<-q[,1] a2<-q[,3] a3<-q[,4] plot(time,a2type='l',col='red',ylab='',xlab=" ",axes=FALSE) lines(time,a3,col='blue',ylab='',xlab=" ") polygon(c(time[1:j],time[1:j]),c(x,y),col="grey") #############################################################################################...