[R] plotting a distribution curves

Petr Pikal petr.pikal at precheza.cz
Wed Sep 3 14:56:35 CEST 2003


Hallo

On 1 Sep 2003 at 16:25, Rajarshi Guha wrote:

> Hi,
>   is there a way to plot distribution curves (say normal or chi sq
>   etc)
> from within R?
> 
> For example I looked up the *chisq family of functions but I'm not
> sure as to how I would use them to generate a plot of the chi sq
> distribution (for arbitrary d.o.f).

Something like that

plot(seq(-3,3,.1),dnorm(seq(-3,3,.1)),type="l")
plot(seq(0,20,.1),dchisq(seq(0,20,.1),5),type="l")


> 
> Thanks,
> 
> -------------------------------------------------------------------
> Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> GPG
> Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
> -------------------------------------------------------------------
> Did you hear that two rabbits escaped from the zoo and so far they
> have only recaptured 116 of them?
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Cheers
Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list