Skip to content

Do you know how to plot a PDF function?

5 messages · Feng Zhang, Roger D. Peng, Jerome Asselin +1 more

#
Hey, All

There are some 1-Dimensional probability density functions (PDF), e.g.,
f(x), g(x), etc.
And I want to plot them given the range of x.

So which function can I apply to achieve this?

Thanks.

Fred
#
?curve

-roger
_______________________________
UCLA Department of Statistics
http://www.stat.ucla.edu/~rpeng
On Fri, 11 Apr 2003, Feng Zhang wrote:

            
#
One stupid question again.
How to plot the Normal density function?

----- Original Message ----- 
From: "Roger Peng" <rpeng at stat.ucla.edu>
To: "Feng Zhang" <f0z6305 at labs.tamu.edu>
Cc: "R-Help" <r-help at stat.math.ethz.ch>
Sent: Friday, April 11, 2003 11:57 AM
Subject: Re: [R] Do you know how to plot a PDF function?
#
See the thread on "plotting the lognormal density curve" which was posted 
only 2 days ago.

http://maths.newcastle.edu.au/~rking/R/help/03a/3794.html

Jerome
On April 11, 2003 10:04 am, Feng Zhang wrote:
#
On Fri, 11 Apr 2003, Feng Zhang wrote:

            
plot(dnorm, -4, 4)

using plot.function, or use curve directly.

BTW, `PDF function' is tautology.