Re: [R] Illustrating kernel distribution in wheat ears

2010-01-13 Thread Carl-Göran CG . Pettersson
[djmu...@gmail.com] Skickat: den 11 januari 2010 15:03 Till: Carl-Göran CG. Pettersson Kopia: r-help@r-project.org Ämne: Re: [R] Illustrating kernel distribution in wheat ears Hi: It wasn't clear to me precisely what you wanted, but here are a couple of ideas in the hope that it will help. I used

Re: [R] Illustrating kernel distribution in wheat ears

2010-01-11 Thread Jim Lemon
On 01/11/2010 06:47 PM, Carl-Göran CG. Pettersson wrote: Dear all R2.10 WinXP I have a dataset dealing with the way different wheat cultivars build their yield. Wheat ears are organised in spikelets where the spikelets can be numbered from the bottom, with even numbers on one side and odd

Re: [R] Illustrating kernel distribution in wheat ears

2010-01-11 Thread Carl-Göran CG . Pettersson
Från: Jim Lemon [...@bitwrit.com.au] Skickat: den 11 januari 2010 10:56 Till: Carl-Göran CG. Pettersson Kopia: r-help@r-project.org Ämne: Re: [R] Illustrating kernel distribution in wheat ears On 01/11/2010 06:47 PM, Carl-Göran CG. Pettersson wrote: Dear all R2.10 WinXP I have a dataset

Re: [R] Illustrating kernel distribution in wheat ears

2010-01-11 Thread Dennis Murphy
Hi: It wasn't clear to me precisely what you wanted, but here are a couple of ideas in the hope that it will help. I used ggplot2 for the graphics, so it requires some manipulation of your dataset from 'wide' format to 'long'. I also add an indicator for side of the ear (odd is side one (L?),

Re: [R] Illustrating kernel distribution in wheat ears

2010-01-11 Thread Jason Smith
Here is how I tried to do a simple side-by-side boxplot: # Create new dataframe (cultivar, values, idx) # cbind goes by column so the cn column is repeated for us cultivars - cbind(cultivar=wheat$cn, stack(wheat[2:15])) boxplot(values ~ cultivar, data=cultivars, main=Kernel distribution,

Re: [R] Illustrating kernel distribution in wheat ears

2010-01-11 Thread Jim Lemon
On 01/12/2010 12:41 AM, Carl-Göran CG. Pettersson wrote: Thanks a lot for the quick response! The suggested code worked fine up to a certain point: the actual plotting from the datasets... With the sample dataset in samp my code looks like this at the end: for(cultivar in 1:6) +

[R] Illustrating kernel distribution in wheat ears

2010-01-10 Thread Carl-Göran CG . Pettersson
Dear all R2.10 WinXP I have a dataset dealing with the way different wheat cultivars build their yield. Wheat ears are organised in spikelets where the spikelets can be numbered from the bottom, with even numbers on one side and odd on the other. I know how many kernels there were in each