Fixing the order of facets in ggplot
Make your size a factor in your dataframe by: temp$size_f = factor(temp$size, levels=c(‘50%’,’100%’,’150%’,’200%’)) Then change the facet_grid(.~size) to facet_grid(.~size_f) Then plot: The graphs are now in the correct order.