histdata <- hist(samp,freq=TRUE,br=20)
curve(max(histdata$count)*dnorm(x,mean=mean(samp),sd=sd(samp)),add=TRUE)
---
Date: Mon, 1 Mar 2004 17:18:12 +0800
From: <WeiQiang.Li at seagate.com>
To: <r-help at stat.math.ethz.ch>
Subject: [R] How to plot Histogram with frequence overlaid by distribution curve
Hi,
I am facing the problem that I want to plot a histogram chart set
freq to true and overlay with normal or weibull or exponential distribution
curve.
The sample code is shown as below:
In the chart created based on above command, curve scale is too small
compared to the freqeunce. My question here is how to adjust the scale of
distribution curve. Thanks !
Best Regards
WeiQiang Li