Skip to content

Instantly share code, notes, and snippets.

@nickleeh
Created May 8, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickleeh/768b47b89b0e51d64a7d to your computer and use it in GitHub Desktop.
Save nickleeh/768b47b89b0e51d64a7d to your computer and use it in GitHub Desktop.
randNorm <- rnorm(3000)
randDensity <- dnorm(randNorm)
require(ggplot2)
ggplot(data.frame(x = randNorm, y = randDensity)) + aes(x = x, y = y) + geom_point() + labs(x = "Random Normal Variables", y = "Density")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment