-
-
Save EmZhu/fb31aa94afb6ee1e2207a18da3266562 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
population_range = max(population$Change) - min(population$Change) | |
population$Normalized = (population$Change - min(population$Change)) / population_range | |
population$distinct_national = distinct_national$Normalized | |
ggplot(population, aes(Year)) + | |
geom_line(aes(y=distinct_national, color='blue')) + | |
geom_line(aes(y=Normalized, color='red')) + | |
scale_colour_manual("", | |
labels = c("Unique names", "Population"), | |
values = c("red", "blue")) + | |
ggtitle('Number of unique names against population') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment