[R] how can draw probability density plot?
Ales Ziberna
ales.ziberna at guest.arnes.si
Tue Nov 16 10:02:33 CET 2004
I hope this is the direct operation you are looking for:
curve(dnorm(x),from=-3,to=3)
Best regards,
Ales Ziberna
----- Original Message -----
From: "LONG Yu" <ylong at smu.edu.sg>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, November 15, 2004 1:26 PM
Subject: [R] how can draw probability density plot?
Dear support,
I want to draw a probability density plot in R. For example, I provide the
mean and variance of a normal distribution, then R can provide me the
probability density plot. Now I always generate random numbers of normal
distribution and calculate their dnorm(mu, var), finally plot them. I am
eager to know some directly operation.
Thank you for your attention.
I am looking forward to hearing from you soon.
Best regards,
Long Yu
--------------------------------------------------------------------------------
______________________________________________
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