Zmiana kolejności w legendzie LUB na wykresie, ale nie w obu

Mam te dane:

datat <- structure(list(Carga = structure(c(2L, 1L, 2L, 1L, 2L, 1L, 2L, 
1L, 2L, 1L, 2L, 1L), .Label = c("Outra", "88"), class = "factor"), 
    Categoria = structure(c(1L, 1L, 3L, 3L, 2L, 2L, 1L, 1L, 3L, 
    3L, 2L, 2L), .Label = c("A", "G", "B"), class = "factor"), 
    Vagas = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 
    2L, 2L), .Label = c("Ocupadas", "Autorizadas"), class = "factor"), 
    Cat.A.88 = c(26, 1, 30, 1, 18, 0, 57, 0, 39, 0, 0, 0)), .Names = c("Carga", 
"Categoria", "Vagas", "Cat.A.88"), class = "data.frame", row.names = c(NA, 
-12L))

i ta fabuła:

ggplot(datat, aes(x=Carga, y=Cat.A.88, fill=Vagas)) + geom_bar(stat='identity', position='dodge') + ylab('Vagas') + xlab('Carga horária') + facet_grid(. ~ Categoria) + coord_flip() 

Kolory legendy są w odwrotnej kolejności w porównaniu z kolorami wydruku (wykres ma kolor zielony przed czerwonym, a legenda czerwony przed zielonym). Chcę, żeby pojawili się w tej samej kolejności. Próbowałem dodać parametrorder=-as.numeric(Vagas) waes(), ale nic nie zmieniłem.

questionAnswers(1)

yourAnswerToTheQuestion