Last active
January 30, 2018 10:51
-
-
Save benapie/37012f8af5a99365b93c37269e7bc59e to your computer and use it in GitHub Desktop.
Histogram from a tibble (main), or any other data-frame-like data type, where data is split and scaled to density for data satisfying a condition and not satisfying a condition.
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
ggplot(data)+ | |
geom_histogram(alpha = 0.5, | |
aes(x = Value, | |
y = ..density.., | |
fill = Condition), | |
position = 'identity', | |
binwidth = 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment