[R] remove black square from factor plot
Jonas Josefsson
jonas at runtimerecords.net
Fri Oct 22 14:14:17 CEST 2010
Thanks, worked great!
2010-10-21 08:01, Petr PIKAL skrev:
> Hi
>
> r-help-bounces at r-project.org napsal dne 20.10.2010 17:43:27:
>
>
>>> str(species.factor)
>>> Factor w/ 81 levels "Acer_platanoides_Bl",..: 12 12 55 55 76 76 52 52
>>>
>
>>> 67 67 ...
>>>
>>> str(minmax)
>>> int [1:162] 6163779 7262127 6163779 7422941 6163779 6644861 6163779
>>> 6644861 6163779 7262127 ...
>>>
>> That is, my factor is the species listed two times each
>> Acer_platanoides_Bl Acer_platanoides_Bl Sorbus_aucuparia_Bl
>> Sorbus_aucuparia_Bl..... more species
>>
>> and minmax lists min_sp1 max_sp1 min_sp2 min_sp2......
>>
>> Here an image of my plot (with more elements included, but you can see
>> the black squares in the centers of each box...)
>>
> This is not a black square, it is line which indicates median, which is to
> be expected in a boxplot. If you really want to remove it use
>
> medlty=0
>
> in your plot call as indicated in bxp help page.
>
> Regards
> Petr
>
>
>
>
>> http://img51.imageshack.us/img51/9011/plott.jpg
>>
>> Jonas
>>
>>
>> 2010-10-20 17:14, David Winsemius skrev:
>>
>>> 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
>>>
>> ______________________________________________
>> R-help at 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.
>>
More information about the R-help
mailing list