I have a probability density function in a plot called ph that i derived from two samples of data, by the help of a user of stackoverflow, in this way
few &
Do you want a density function?
x = rnorm(1000) hist(x, breaks = 30, freq = FALSE) lines(density(x), col = "red")