I have this ggplot
ggplot(data = ph, aes(x = index1)) + geom_density()
and I would like to add a normal distribution with the same mean (= 2.71)
and standard Deviation (= 0.61)
.
I created the normal distribution with:
nd1 <- rnorm(n = 100000, mean = 2.71), sd = 0.61)
nd1plot <- qplot(nd1, geom = "density") + theme_classic() + ggtitle("Normalverteilung")
But now I don't know how to add it to my existing plot. Can anyone help me with this issue?