[R] How to ignore outliers in a boxplot

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Wed Aug 4 16:01:46 CEST 2021


Hello,

I'm not sure whether you are looking for argument range:


boxplot(var, range = 0)


14 is now part of the whiskers, see ?boxplot.

Hope this helps,

Rui Barradas

Às 14:51 de 04/08/21, Neha gupta escreveu:
> Hi
> 
> I have values like:
> 
> var= c(0, 0, 0,0, 0, 14, 0, 14, 0, 2, 3)
> 
> I want to show these values in a boxplot
> 
> boxplot (var)
> 
> However, the boxplot shows only the zero values and the value till 14 are
> shown as outliers.. I want to show all my values as boxplot, can I do that?
> 
> If I use outline=F, it excludes all the outliers.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list