how to change order of x labels on geom bar code example Example: ggplot2 barplot order of bars theTable$Position <- factor(theTable$Position, levels = c(...))