Как удалить выбросы в boxplot в R? [дубликат]

Возможные Дубликаты:
изменение правила выброса в boxplot

мне нужно визуализировать мой результат, используя box-plot.

x<-rnorm(10000)
boxplot(x,horizontal=TRUE,axes=FALSE)

Как я могу фильтровать выбросы во время визуализации?

(1), чтобы я мог иметь полное изображение на экране без уродливых выбросов.

http://postimage.org/image/szzbez0h1/a610666d/

(2) есть ли способ, чтобы показать выбросы до определенного диапазона? http://postimage.org/image/np28oee0b/8251d102/

в отношении

1 ответов


посмотреть ?boxplot для всей помощи вам.

 outline: if ‘outline’ is not true, the outliers are not drawn (as
          points whereas S+ uses lines).

boxplot(x,horizontal=TRUE,axes=FALSE,outline=FALSE)

и для расширения диапазона усов и подавления выбросов внутри этого диапазона:

   range: this determines how far the plot whiskers extend out from the
          box.  If ‘range’ is positive, the whiskers extend to the most
          extreme data point which is no more than ‘range’ times the
          interquartile range from the box. A value of zero causes the
          whiskers to extend to the data extremes.

# change the value of range to change the whisker length
boxplot(x,horizontal=TRUE,axes=FALSE,range=2)