Skip to content

Add function to histogram?

1 message · TEMPL Matthias

#
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