Daniela Garavaglia wrote:
Sorry, I have some troubles with the graph device.
How can I draw a function over a histogram?
Thank's so much.
Daniela,
What function?
Here is one example using density() and using dnorm()
x <- rnorm(1000,2,2)
hist(x,prob=TRUE)
lines(density(x,na.rm=TRUE),col="red
Sorry, I have some troubles with the graph device.
How can I draw a function over a histogram?
Thank's so much.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
2 matches
Mail list logo