I am making a barplot within ggplot which looks like this:
and this is my code:
ggplot(melted, aes(x = c, y = value)) +
geom_bar(stat="identity", width = 0.3) +
geom_hline(yintercept = 33)
my data looks like the following:
c variable value
C_2 qd 55.29899
C_4 qd 55.00241
C_8 qd 54.43281
C_16 qd 53.37958
How can I reorder the bars so that they show in "numeric order" of C_2, C_4, C_8, C_16?