0

I would like to order this bar plot based on ascending Inclusive Teaching, which is a level of "variable"

enter image description here

levels(dater$variable)[levels(dater$variable) == "Active Learning Exposure"]  <- "Active Learning"
levels(dater$variable)[levels(dater$variable) == "EPIC_IT_Exposure"]  <- "Formative Assessment"
levels(dater$variable)[levels(dater$variable) == "EPIC_As_Exposure"]  <- "Inclusive Teaching"

ggplot(dater3,aes(Professor, value, fill=variable))+
  geom_bar(stat="identity")+
  theme(axis.ticks.x = element_blank(), axis.text.x = element_blank())+
  ylab("Reported Exposure")+
  scale_fill_manual(values = c("green","blue", "red"))+
  labs(fill = "Evidence Based Teaching Practice")
zebra111
  • 11
  • 3
  • Does this answer your question? [Re-ordering bars in R's barplot()](https://stackoverflow.com/questions/37480949/re-ordering-bars-in-rs-barplot) – GuedesBF Jul 13 '21 at 15:16
  • Does this answer your question? [Order Bars in ggplot2 bar graph](https://stackoverflow.com/questions/5208679/order-bars-in-ggplot2-bar-graph) – GuedesBF Jul 13 '21 at 15:18
  • This was extensively discussed and answered all over SO. – GuedesBF Jul 13 '21 at 15:20
  • @GuedesBF Unfortunately those do not answer my question :( but thank you for your help :) – zebra111 Jul 13 '21 at 16:51

0 Answers0