range and bwplot

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

range and bwplot

vincent david
Hi,

is there an equivalent to the 'range' option of the boxplot function to be
found in the bwplot function of the trellis package?

regards

Vincent

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: range and bwplot

Uwe Ligges
vincent david wrote:

> Hi,
>
> is there an equivalent to the 'range' option of the boxplot function to be
> found in the bwplot function of the trellis package?


Please read the help files. ?bwplot points you to ?panel.bwplot which
explains that you should use argument "coef".

Uwe Ligges


> regards
>
> Vincent
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: range and bwplot

Sundar Dorai-Raj
In reply to this post by vincent david


vincent david wrote:
> Hi,
>
> is there an equivalent to the 'range' option of the boxplot function to be
> found in the bwplot function of the trellis package?
>
> regards
>
> Vincent
>

Hi, Vincent,

 From ?panel.bwplot, you can supply your own function for "stats". For
your case, you would need:

bwplot(decrease ~ treatment,
        OrchardSprays, groups = rowpos,
        stats = function(x, coef = 1, ...) {
          boxplot.stats(x, coef, ...)
        })

HTH,

--sundar

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html