From: Yaroslav H. <sf...@on...> - 2014-02-15 13:00:53
|
Dear Matplotlib gurus, Following the code to demonstrate recent(ish) fix for whiskers in boxplots: https://github.com/matplotlib/matplotlib/pull/1855 I have compared it against R's boxplot. Description seems to correspond, and all the percentiles are the same in numpy and R (3.0.1) but R's boxplot seems to have extended IQR box and still have an upper whisker (corresponds to 9000, which is not within 75%+1.5*IQR), when it shouldn't: http://nbviewer.ipython.org/url/www.onerussian.com/tmp/boxplot-Python-vs-R.ipynb is R's plot incorrect or am I missing something (e.g. documented feature in R's boxplot) warranting such a difference? Thanks in advance -- Yaroslav O. Halchenko, Ph.D. http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org Senior Research Associate, Psychological and Brain Sciences Dept. Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 WWW: http://www.linkedin.com/in/yarik |