Hi there, so this is an absolutely basic question for R, but although I've tried various approaches, I just can't get it to work. So as most of you know, when you perform the standard boxplot() or plot() function in R (or most other functions for that matter), R will use the alphabetical order of variables to plot them. In some cases this makes no sense. For example, if you want to plot gene expression of difference disease states (pre-treatment, post-treatment), you'll get post-treatment first. Now I've tried using the c() command or the breaks() command, but that'll just change the labelling, but won't switch the datasets around. Does anyone have a good way of doing this?

Thanks a mill for any help.

Oliver

Similar questions and discussions