Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created November 15, 2013 12:31
Show Gist options
  • Save nassimhaddad/7483616 to your computer and use it in GitHub Desktop.
Save nassimhaddad/7483616 to your computer and use it in GitHub Desktop.
d1 <- density(rnorm(100))
d2 <- density(rnorm(100))
plot(range(d1$x, d2$x), range(d1$y, d2$y), type = "n", xlab = "x",
ylab = "Density")
lines(d1, col = "red")
lines(d2, col = "blue")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment