Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread Don McKenzie
Kurt You need to give us more information if you want good advice. For example, what sort of plot are you trying to make? A barplot? A time series? A reproducible example is always best. Please see the R-news posting guide for hints on a successful query. On Jan 28, 2011, at 1:53 PM,

Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread David Winsemius
On Jan 28, 2011, at 4:53 PM, kurt_h...@nps.gov wrote: Greetings Though I have months in chronological order in my data table, the data were sampled every other month (i.e., February, April, June, August, October, December), every time I try to plot them (on the x-axis) they are

Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread RICHARD M. HEIBERGER
You need to make your variable into a factor and specify the order. mymonths - c(December, March) factor(mymonths) [1] December March Levels: December March factor(mymonths, levels=month.name) [1] December March 12 Levels: January February March April May June July August September October ...

Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread Greg Snow
This would be easier if you showed us a sample of your data and what commands you are using. Without we need to guess. Probably your month variable is being turned into a factor somewhere and the default for factors is alphabetical. The best solution depends on how/where/when your months are