Skip to content
Prev 77565 / 398502 Next

Add function to histogram?

Hello,

E.g. with lines() or add a new plot to the current plot with par(new = TRUE)  (and set equal xlim and ylins??s in the plot function)

r <- rnorm(100)
hist(r,freq=FALSE)
lines(density(r))

Best,
Matthias