Re: [R] ggplot2 bar chart: order display for each group

2021-09-20 Thread Jeff Newmiller
I could, but this question is off topic on this mailing list. Read the Posting Guide before you post again. Help for ggplot2 can be found in many places... start your search here https://cran.r-project.org/web/packages/ggplot2/index.html. (Hint: your data should be a factor.) On September 20,

[R] ggplot2 bar chart: order display for each group

2021-09-20 Thread Kai Yang via R-help
Hello List, I submitted the code below, it will show two groups of avg_time bar chart for each gc_label. ggplot(s8_GCtime, aes(fill=GTresult, y=avg_time, x=gc_label, label = avg_time)) +    geom_bar(position=position_dodge(), stat="identity") +   geom_text(aes(label=avg_time), vjust=1.6, positi