I am trying to add data labels on bars and also i want to reorder condition on bars such as first "weak", followed by "JAR" and then "strong". I tried few things but no success yet. Please help me if you can. Here is code:
library(ggplot2)
df <- read.csv("F:/jar_file.csv")
colnames(df)[1] = "Sample"
p4 <- ggplot() + geom_bar(aes(y = Sample, x = Percent, fill = Condition), data = df,
stat="identity") +
scale_fill_manual(values = c("#669999", "#CCCCCC","#FFFFFF")) +
theme(axis.title.x=element_blank())
p4
Created on 2020-06-21 by the reprex package (v0.3.0)