[R] Fill in a pdf with colour

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Nov 18 19:04:05 CET 2012



On 18.11.2012 13:02, nany23 wrote:
> Good morning,
>
> I have a sampled probability density function and I have to fill in with
> colour a fraction of the total area beneath the curve (e.g. the 50% of the
> total area beneath the curve). I would like to know which is the simplest
> way to do this.

See ?polygon

Uwe Ligges

>
> Thank you for answering
> Best regards
>
> Nany23
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Fill-in-a-pdf-with-colour-tp4649929.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list