1
Good afternoon,
I have the following command which generates the following graph:
CANDIDATOS_2018_LEGISLATIVO %>%
group_by(DS_ESTADO_CIVIL, DS_GENERO) %>%
count() %>%
ggplot(., aes(x = reorder(DS_ESTADO_CIVIL, -n), y = n, fill =
DS_GENERO)) +
geom_bar(stat = "identity", position = "dodge") +
theme(axis.text.x = element_text(angle = 30, size = 7))
My goal is to turn the y axis into percentage values, someone would know which command needed?