Created
November 6, 2015 05:35
-
-
Save t-student/abe13139e177f24eaf0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knee.mean <- mean(df2$kneeheel, na.rm = T) | |
knee.sd <- sd(df2$kneeheel, na.rm = T) | |
p <- ggplot(data = df2, aes(x=kneeheel)) | |
p <- p + geom_density(aes(y=..density..)) | |
p <- p + stat_function(fun = dnorm, args = list(mean = knee.mean, sd = knee.sd), colour = "red") | |
print(p) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment