i have created a percent stacked bar chart but i am having troubling trying to change the order of the two of the fill columns, i only want to rearrange blastocyst and morula, so that blastocyst is on the top.
i have tried every code thinkable and i cant seem to do it
here is the code that i have used to produce this graph
ggplot(ThreeSpecies,aes(y=percent, x = Species,fill=Stage))+
geom_bar(stat="identity",position = position_fill(vjust= 1, reverse = TRUE))+
theme(panel.grid.major = element_blank(),panel.grid.minor = element_blank())+
scale_y_continuous(labels = scales::percent)+
ylab("Percentage")+
xlab("Species")