-1
First you can sort the data by day of the week:
date_manip$Dia_semana <- ordered(date_manip$Dia_semana, levels=c("domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"))
And then the chart:
date_manip %>% na.omit() %>% ggplot(aes(x=Dia_semana), group=1) + geom_bar(aes(x=Dia_semana)) + ggtitle("Viagens por dia da semana") + theme_clean()
Welcome to Stackoverflow! Unfortunately, this question cannot be reproduced by anyone trying to answer it. Please take a look at this link (mainly in the use of function
dput
) and see how to ask a reproducible question in R. So, people who wish to help you will be able to do this in the best possible way.– Marcus Nunes