[R-sig-eco] Problem with Polygon
Sarah Goslee
sarah.goslee at gmail.com
Mon Dec 12 18:39:40 CET 2011
It's very hard to help you without:
a small reproducible example;
an idea of what you are getting vs what you expect - "does not seem
good" is not particularly informative.
Otherwise we really can't tell what's wrong.
Sarah
On Mon, Dec 12, 2011 at 12:26 PM, momadou sow <momadou at yahoo.fr> wrote:
> Hi,
> I have a
> matrix with 3 columns (Date, MeanArea and SdArea). I want to draw a figure showing
> the variable MeanArea in terms ofthe
> Date.
> But instead to use the variable SdAreaas
> bar error, I want to use “polygon error”. I use this code but the output does
> not seem good.
>>Poly<read.table("C:\\Users\\Documents\\AreaMonthly.csv",sep=";",dec=",",header=TRUE)
>>Poly
>>y <-MeanArea
>>x <-SdArea
>>z <-Date
>>matplot(x,cbind(y,z),type="n")
>>polygon(c(x,rev(x)),c(y,rev(z)),col="grey50")
> Thank
> you in advance
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-sig-ecology
mailing list