Hi Jim,
Thank you for your answer, finally I resolved the problem with this code: 
 
inverse=function(x){
inv<-numeric(length=(length(x)))
for (i in 1:length(x)) inv[i]<-x[length(x)-(i-1)]
return(inv)
}
plot(Barerror$MoyArea~Barerror$Mois,type="l")
polygon(x=c(Barerror$Mois,inverse(Barerror$Mois),Barerror$Mois[1]),y=c(Barerror$MoyArea+Barerror$SdArea,inverse(Barerror$MoyArea-Barerror$SdArea),Barerror$MoyArea[1]+Barerror$SdArea[1]),col="gray",border=NA)
lines(Barerror$MoyArea~Barerror$Mois,lwd=2) 
 
Thanks
Komine
 
 

________________________________
 De : Jim Lemon [via R] <ml-node+s789695n4216146...@n4.nabble.com>

Envoyé le : Mardi 20 Décembre 2011 1h42
Objet : Re: Polygon


Komine wrote: 

________________________________

Hi Komine, 
I think you want a dispersion band around y (Mean Area). Without the 
data I really can't tell, but the dispersion function in the plotrix 
package using type="l" and fill=<some color> may do what you want. 

Jim 

______________________________________________ 
[hidden email] 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. 




________________________________

If you reply to this email, your message will be added to the discussion below: 
http://r.789695.n4.nabble.com/Polygon-tp4186283p4216146.html  
To unsubscribe from Polygon, click here.
NAML

--
View this message in context: 
http://r.789695.n4.nabble.com/Re-Polygon-tp4217607p4217607.html
Sent from the R help mailing list archive at Nabble.com.
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to