[R] How to plot PDF which is in the form of orthogonal polynomial
F Z
gerifalte28 at hotmail.com
Sun Oct 31 02:18:47 CEST 2004
I am not sure that I understand very well what you want to do but you might
want to try
density(). There are some good examples for this function under
example(density). The result is an object with class "density" that you can
plot directly using plot()
Francisco
PS: I reccomend you to read the posting guide
http://lib.stat.cmu.edu/R/CRAN/ so you can get better answers
>From: Yong Wang <wang at galton.uchicago.edu>
>To: r-help-request at stat.math.ethz.ch
>CC: r-help at stat.math.ethz.ch
>Subject: [R] How to plot PDF which is in the form of orthogonal polynomial
>Date: Sat, 30 Oct 2004 11:19:16 -0500 (CDT)
>
>Dear all
>using the orthogonal polymial on a set of data, I get an approximate
>density which basically is in the form: exp(-polynomial),
> as you know, the parameters are the converged coeeficients.
>obviously, It is hard, if not impossible, to use the inverse CDF method to
>get a sample and then plot density. then how can I plot the approximated
>density in order to have a graphical comparision with the real data's
>histogram.
>
>any hint is appreciated
>
>thanks
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
>http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list