Re: [R] Help with shading a polygon below a segment of a curve (normaldistribution)

2008-08-28 Thread Richard M. Heiberger
library(HH) normal.and.t.dist() There are many related examples in example(normal.and.t.dist) __ 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

Re: [R] Help with shading a polygon below a segment of a curve (normaldistribution)

2008-08-28 Thread Derek Ogle
Bertolt, The points you send to polygon() do not fully enclose the area you desire. Try adding one more point as such xt - c(x[(length(x)-cutpoint):length(x)],linepos) yt - c(y[(length(y)-cutpoint):length(y)],0) polygon(xt, yt, density = 10 ) -Original Message- From: [EMAIL