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 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 the code to change the outlier shapes.
> Thank you.
>
> code
> package (lattice)
>
> dataN <- data.frame(GE_distance=rnorm(260),
>
>                     Diet_B=factor(rep(1:13, each=20)))
>
> Diet.colors <- c("forestgreen", "darkgreen","chocolate1","darkorange2",
>
>                  "sienna2","red2","firebrick3","saddlebrown","coral4",
>
>                  "chocolate4","darkblue","navy","grey38")
>
> levels(dataN$Diet_B) <- Diet.colors
>
> bwplot(GE_distance ~ Diet_B, data=dataN,
>
>        xlab=list("Diet of Breeding Ground", cex = 1.4),
>
>        ylab = list(
>
>          "Distance between Centers of B and NB Range (1000 km)",
>
>          cex = 1.4),
>
>        panel=panel.bwplot.intermediate.hh,
>
>        col=Diet.colors,
>
>        pch=rep("|",13),
>
>        scales=list(x=list(rot=90)),
>
>        par.settings=list(box.umbrella=list(lty=1)))
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org <javascript:;> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Sarah Goslee
http://www.stringpage.com
http://www.sarahgoslee.com
http://www.functionaldiversity.org

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to