Skip to content

about the whisker in boxplot

2 messages · catherineLF, Yihui Xie

#
Hi, Dear R-users,

I have a problem when I drawing a boxplot.  I want to extend the whisker to
the 5% and the 95% quantiles and only show the most extreme outlier, like
0.01%  and 99.99% percentiles. What should I do?

I saw something on boxplot.stat, but even I define the parameter in
boxplot.stat, what I should do next? how to connect it to boxplot? 

Thank you very much! 

Catherine
#
Hi, it seems you have posted the same question (the day before
yesterday?) in previous threads.

I think you may try 'bxp()' - just change the argument z as you wish
and pass it to bxp(). For example:

##
$stats
     [,1]
[1,]  1.0
[2,]  3.0
[3,]  5.5
[4,]  8.0
[5,] 10.0
attr(,"class")
        1
"integer"

$n
[1] 10

$conf
         [,1]
[1,] 3.001801
[2,] 7.998199

$out
numeric(0)

$group
numeric(0)

$names
[1] "1"

## change the default to .05 and .95quantile
+     0.75, 0.95))
$stats
     [,1]
[1,] 1.45
[2,] 3.25
[3,] 5.50
[4,] 7.75
[5,] 9.55
attr(,"class")
        1
"integer"

$n
[1] 10

$conf
         [,1]
[1,] 3.001801
[2,] 7.998199

$out
numeric(0)

$group
numeric(0)

$names
[1] "1"

## as you wish...
##

HTH.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China
On Fri, Sep 19, 2008 at 1:17 AM, catherineLF <cathelf at hotmail.com> wrote: