Re: [R] Plotting ordered nominal data

2008-08-04 Thread Sandy Small
Many thanks I was sure it was simple. That was exactly what I wanted. I should have clarified that I was looking for a box-plot. Thanks to all who responed. Sandy S Ellison wrote: Sandy, You can re-order a factor with df$Eyeball<-factor(df$Eyeball, levels=c("Normal", "Mild", "

Re: [R] Plotting ordered nominal data

2008-08-01 Thread John Kane
I'm not really clear on what you want here. Are you talking about plotting multiple data points for each value ? In that case something like boxplot might be what you want. Otherwise if you just wish to plot a data point for each occurance of Normal etc then this will work but I'm not sure h

Re: [R] Plotting ordered nominal data

2008-08-01 Thread Marc Schwartz
on 08/01/2008 10:21 AM Sandy Small wrote: Hi I'm sure this question has been asked before but I can't find it in the archives. I have a data frame which includes interval and ordered nominal results. It looks something like "Measured" "Eyeball" 46.5 Normal 43.5 Mild 56.2 Normal 41.

Re: [R] Plotting ordered nominal data

2008-08-01 Thread S Ellison
Sandy, You can re-order a factor with df$Eyeball<-factor(df$Eyeball, levels=c("Normal", "Mild", "Moderate", "Severe"), ordered=T) (assuming df is your data frame and that you want an _ordered_ factor; the latter is not essential to your plots) Incidentally, "NULL" isn't a particularly friendly