Hi all,
I'd appreciate your help with this problem.

I need to plot a barplot with the categories in a specific order. My data
might be:

hours Freq
AN     10
MO     14
LU      30

I need the categories to be in the order:
MO LU AN

Is there some way to pass sort the dataset into this order so that it plots
correctly when passed to barplot()?

Thanks very much,
Richie

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to