Message-ID: <AA60CF73-9BE7-4535-A963-CD0BA5933247@comcast.net>
Date: 2011-01-28T22:17:41Z
From: David Winsemius
Subject: Months in alphabetical order rather than chronological order in graph
In-Reply-To: <OF62B79BC9.0EC0F46A-ON86257826.00775CCD-86257826.007841AB@nps.gov>
On Jan 28, 2011, at 4:53 PM, Kurt_Helf at 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
> plotted in alphabetical order. What am I missing?
A reproducible example for one thing. A short sig for another.
> monfac <- factor(month.name[sample(1:100)])
> plot(monfac)
> plot( factor(monfac, levels=month.name))
> Cheers
> Kurt
>
> ***************************************************************
> Kurt Lewis Helf, Ph.D.
> Ecologist
--
David Winsemius, MD
West Hartford, CT