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
Hi all
I have a multiple datasets that look like this
MM Freq
1 30
2 35
3 54
4 33
5 27
6 13
7 25
8 29
9 40
10 32
11 36
12 23
I am plotting this using barchart (there is probably something better
but it gives me the results I
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Spilak,Jacqueline [Edm]
Sent: Wednesday, June 20, 2007 3:13 PM
To: r-help@stat.math.ethz.ch
Subject: [R] Replace number with month
Hi all
I have a multiple datasets that look like this
MM
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.
Try, for example,
plot(factor(month.name[1:12], levels=month.name[1:12]) , 12:1)
-Don
At 4:12
Simple brute force approach that should work:
barplot(Freq,MM, names=c('Jan','Feb','Mar', 'Apr',
'May', 'Jun','Jul', 'Aug', 'Sept', 'Oct','Nov',
'Dec'))
--- Spilak,Jacqueline [Edm]
[EMAIL PROTECTED] wrote:
Hi all
I have a multiple datasets that look like this
MM Freq
1 30
2