[R] remove black square from factor plot

David Winsemius dwinsemius at comcast.net
Wed Oct 20 17:14:07 CEST 2010


On Oct 20, 2010, at 10:45 AM, fugelpitch wrote:

> I have a factor which is species and the variables are a few sites  
> where this
> species live.
>
> When I plot:
>
> plot(species.factor, minlatitudemaxlatitude)
>
> the plot produced is automatically a boxplot which shows the range  
> of the
> species (which is what I want).

This fact (a boxplot from the "plot" function) suggests that the  
objects you are plot()-ting are of some class for which there is a  
specific plot method. What do these commands return:

str(species.factor)
str(minlatitudemaxlatitude)     # ?


> However, in the thin box which is produced by each species, there is  
> a small
> black square in "center position" of the box. Is it possible to  
> remove this.
> Have tried to include bxp(par(medpch=NA)) without success.
>
> Thanks!
>
> Jonas Josefsson

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list