Displaying 1 result from an estimated 1 matches for "temp_time".
Did you mean:
temp_file
2011 Nov 18
1
Producing plot using polygon function
...ccurring . But it is not producing properly. I must be wrong
in assigning coordinates.
What should be the correct way to produce the desired plot?
Thanks in advance
######################################################################################################
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='...