Out of order text labels on stack bar plot (ggplot)
问题 I'm trying to make a stacked bar chart with text labels, this some example data / code: library(reshape2) ConstitutiveHet <- c(7,13) Enhancer <- c(12,6) FacultativeHet <- c(25,39) LowConfidence <- c(3,4) Promoter <- c(5,4) Quiescent <- c(69,59) RegPermissive <- c(23,18) Transcribed <- c(12,11) Bivalent <- c(6,22) group <- c("all","GWS") meanComb <- data.frame(ConstitutiveHet,Enhancer,LowConfidence,Promoter,Quiescent,RegPermissive,Transcribed,Bivalent,group) meanCombM <- melt(meanComb,id.vars