-
-
Save JuveCampos/04d2b98f3ebaf450b07923622a0a4c14 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
### Grafica ---- | |
ggplot(pop, aes(x = `Grupos quinquenales de edad`, | |
y = `Poblacion por Sexo`, | |
fill = Sexo)) + | |
geom_col(data = subset(pop, Sexo == "Hombres") %>% | |
mutate(`Poblacion por Sexo` = -`Poblacion por Sexo`), | |
width = 0.5, fill = "blue") + | |
geom_col(data = subset(pop, Sexo == "Mujeres"), | |
width = 0.5, fill = "pink") + | |
coord_flip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment