Re: [R] Polygon function

2009-08-19 Thread Jim Lemon

CetinyĆ¼rek Aysun wrote:

Dear all,
I would like to plot credible interval for a function estimate in R. I
would like to plot the credible intervals as shaded region using polygon
function. Does anyone ever used that? I tried several times but I could
not obtain the right figure.

xis=sort(xi,decreasing=TRUE)

plot(xi,fm)
polygon(c(xi,xis),c(f05m,f95m))

The above piece of code produces something else.

  

Hi Aysun,
Have a look at the dispersion function in the plotrix package.

Jim

__
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.


[R] Polygon function

2009-08-18 Thread CetinyĆ¼rek Aysun
Dear all,
I would like to plot credible interval for a function estimate in R. I
would like to plot the credible intervals as shaded region using polygon
function. Does anyone ever used that? I tried several times but I could
not obtain the right figure.

xis=sort(xi,decreasing=TRUE)

plot(xi,fm)
polygon(c(xi,xis),c(f05m,f95m))

The above piece of code produces something else.

Many thanks in advance,



Aysun

__
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.