Don MacQueen wrote: > You can get the names using > > month.name[MM] > > > And it may be necessary to use > > factor(month.name[MM], levels=month.name[1:12]) > > to get them to show up in the correct order in the barchart. >
You're crossing the creek to fetch water there, and getting yourself soaked in the process... (by an unnecessary conversion to character which is subject to alphabetical sorting) I think the canonical way is factor(MM, levels=1:12, labels=month.name) (and the levels=1:12 may not even be necessary when all 12 months are present) -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [email protected] 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.
