Uwe,

Thank you for your reply.  I am still not very clear about the meanings of
the arguments in the stats function.   To make it clearer, quantile() uses
type=7 as default method. I believe this is the method bwplot() uses to
calculate the quantiles. I want to use type=6 method for bwplot(). How do I
achieve that? Thanks again.

Jun

2009/7/21 Uwe Ligges <ligges@statistik.tu-dortmund.de>

>
>
> Jun Shen wrote:
>
>> Hi, everyone,
>>
>> Since quantile calculation has nine different methods in R, I wonder how I
>> specify a method when calling the bwplot() in lattice. I couldn't find any
>> information in the documentation. Thanks.
>>
>>
>
> bwplot() uses the panel function panel.bwplot() which allows to specify a
> function that calculates the statistics in its argument stats that defaults
> to boxplot.stats(). Hence you can change that function.
>
> Example with some fixed values:
>
> bwplot( ~ 1:10,
>    stats = function(x, ...)
>        return(list(stats=1:5, n=10, conf=1, 10, out=integer(0)))
> )
>
>
> Uwe Ligges
>

	[[alternative HTML version deleted]]


