Re: [R] Splitting data in to multiple boxplots

2010-09-29 Thread deadlyspider
Ok, I don't think I was specific enough. The data originally came in this form 1 a 12 2 b 4 3 a 3 4 c 54 5 a 12 6 b 11 7 c 9 8 c 2 . . . . . . . . . Where I sorted by the second column (NB the second column is the categories and they have long names). I would then like

Re: [R] Splitting data in to multiple boxplots

2010-09-29 Thread Martyn Byng
-project.org] On Behalf Of deadlyspider Sent: 29 September 2010 11:02 To: r-help@r-project.org Subject: Re: [R] Splitting data in to multiple boxplots Ok, I don't think I was specific enough. The data originally came in this form 1 a 12 2 b 4 3 a 3 4 c 54 5 a 12 6 b 11 7 c 9 8 c

Re: [R] Splitting data in to multiple boxplots

2010-09-29 Thread Joshua Wiley
Hi, The form of the data is not terribly important neither is whether it was sorted as boxplots are not order dependent are category a is a sorted or not. See below for individual plots with your new data. # read in data dat - read.table(textConnection( 1 a 12 2 b 4 3 a 3 4 c 54 5 a

Re: [R] Splitting data in to multiple boxplots

2010-09-28 Thread Joshua Wiley
Hi, There is a very handy feature of boxplot() that will handle this easily. You can write formulae of the form: scores ~ groups For your sample data: # read in data dat - read.table(textConnection( id cat value 1 a12 2 a23 3 a14 4 b2 5 b3 6 c9 7 c8 8