Re: [R] locating boxplot in bwplot (lattice)

2013-02-27 Thread Elaine Kuo
Hello, I used "group" in dotplot to classify diet by colors. Elaine On Mon, Feb 25, 2013 at 6:27 AM, Elaine Kuo wrote: > Hello > > sorry that I did not make the letter clearly stated. > > Now I have 21 boxplots (No. 1, No. 2No. 21 from the left to the > right)(lattice). > I want the first

Re: [R] locating boxplot in bwplot (lattice)

2013-02-24 Thread Elaine Kuo
Hello sorry that I did not make the letter clearly stated. Now I have 21 boxplots (No. 1, No. 2No. 21 from the left to the right)(lattice). I want the first two (No. 1 and 2) to become red and the rest (No. 3 to No. 21) to become blue. (rep will make No. 1 and 2, No. 9 and 10, No. 17 and 18,

Re: [R] locating boxplot in bwplot (lattice)

2013-02-24 Thread Peter Ehlers
On 2013-02-24 03:50, Elaine Kuo wrote: Hello Thank you for the advice on vector. I found a previous mail on this issue and pasted it below. Now here comes a different scenario. I have more than 20 boxplots and just wanted the first two from the left to be red and the rest to be blue. Please kin

Re: [R] locating boxplot in bwplot (lattice)

2013-02-24 Thread Elaine Kuo
Hello Thank you for the advice on vector. I found a previous mail on this issue and pasted it below. Now here comes a different scenario. I have more than 20 boxplots and just wanted the first two from the left to be red and the rest to be blue. Please kindly advise how to code the color without

Re: [R] locating boxplot in bwplot (lattice)

2013-02-24 Thread Andrés Aragón Martínez
Hi Elaine, In your dataset create a vector with the order in which you want appear the levels, then use that vector in the argument "reorder". Andrés AM El 24/02/2013, a las 00:59, Elaine Kuo escribió: > Hello, > > I tried to manipulate the order of boxplots using the "reorder" below and

Re: [R] locating boxplot in bwplot (lattice)

2013-02-23 Thread Elaine Kuo
Hello, I tried to manipulate the order of boxplots using the "reorder" below and worked. However, please kindly advise how to specify the colors of each boxplot (bird group), like red, green, and blue, from the left to the right. Thanks again. code bwplot(GE_distance~OF, data=dataN, index.c

Re: [R] locating boxplot in bwplot (lattice)

2013-02-22 Thread Ben Bolker
Elaine Kuo gmail.com> writes: > > Hello > > I am using lattice bwplot to draw migration distance of three groups of > birds. > > The boxplots from the left to right is displayed > in alphabetic order of the boxplot names, as the default setting. > > However, I would like the boxplots from the