Skip to content
Back to formatted view

Raw Message

Message-ID: <006301c4cbbb$0e73f5e0$1409f9c2@ales>
Date: 2004-11-16T09:02:33Z
From: Ales Ziberna
Subject: how can draw probability density plot?

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