Last active
June 19, 2017 22:25
-
-
Save juanitobanca/63b4d15c57b10e8a56efbae460350725 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
# Create map | |
( ggplot() | |
+ geom_polygon( data = data | |
, mapping = aes( x = long | |
, y = lat | |
, group = group | |
, fill = players | |
) | |
, color = "white" | |
) | |
+ labs( fill = "Players born" ) | |
+ coord_map() | |
+ theme( panel.grid.minor = element_blank() | |
, panel.grid.major = element_blank() | |
, panel.background = element_blank() | |
, panel.border = element_blank() | |
, axis.ticks = element_blank() | |
, axis.text.x = element_blank() | |
, axis.text.y = element_blank() | |
, axis.title = element_blank() | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment