Re: [R] changing outlier shapes of boxplots using lattice

2012-09-29 Thread ilai
On Fri, Sep 28, 2012 at 11:03 PM, Elaine Kuo elaine.kuo...@gmail.comwrote: Hello Thanks again. I got the attached graph Unsure why the color is still inconsistent. Please kindly share with your R version. It is not my version you need to worry about, but your own... Post the following

Re: [R] changing outlier shapes of boxplots using lattice

2012-09-29 Thread ilai
On Sat, Sep 29, 2012 at 7:32 AM, ilai ke...@math.montana.edu wrote: On Fri, Sep 28, 2012 at 11:03 PM, Elaine Kuo elaine.kuo...@gmail.comwrote: Hello Thanks again. I got the attached graph Unsure why the color is still inconsistent. Please kindly share with your R version. It is not my

Re: [R] changing outlier shapes of boxplots using lattice

2012-09-28 Thread Sarah Goslee
I would guess that if you find the bit that says pch=| and change it to pch=1 it will solve your question, and that reading ?par will tell you why. Sarah On Thursday, September 27, 2012, Elaine Kuo wrote: Hello This is Elaine. I am using package lattice to generate boxplots. Using

Re: [R] changing outlier shapes of boxplots using lattice

2012-09-28 Thread Richard M. Heiberger
Elaine, For panel.bwplot you see that the central dot and the outlier dots are controlled by the same pch argument. I initially set the pch=| to match your first example with the horizontal indicator for the median. I would be inclined to use the default circle for the outliers and therefore

Re: [R] changing outlier shapes of boxplots using lattice

2012-09-28 Thread ilai
On Fri, Sep 28, 2012 at 6:57 AM, Richard M. Heiberger r...@temple.eduwrote: Elaine, For panel.bwplot you see that the central dot and the outlier dots are controlled by the same pch argument. ??? I don't think so... bwplot(rgamma(20,.1,1)~gl(2,10), pch=rep(17,2), panel =

Re: [R] changing outlier shapes of boxplots using lattice

2012-09-28 Thread Elaine Kuo
Hello Ilai, Thank you for the response. It did help a lot. However, a beginner to lattice has three questions. Q1 Please kindly explain why in this case OP is using it with no at argument, so it is possible to display the median and the outliers with different pch? Q2. what is the

[R] changing outlier shapes of boxplots using lattice

2012-09-27 Thread Elaine Kuo
Hello This is Elaine. I am using package lattice to generate boxplots. Using Richard's code, the display was almost perfect except the outlier shape. Based on the following code, the outliers are vertical lines. However, I want the outliers to be empty circles. Please kindly help how to modify