Created
January 16, 2013 12:06
-
-
Save nassimhaddad/4546713 to your computer and use it in GitHub Desktop.
compare histograms by plotting their sensity functions in the same chart
This file contains hidden or 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
plot(density(data1)) | |
lines(density(data2), col = blue) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to do the same thing with ggplot:
http://stackoverflow.com/questions/3541713/how-to-plot-two-histograms-together-in-r