- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to hide outliers in base R boxplot?
To hide outliers in base R boxplot, we can use range argument inside boxplot function but we will have to play with range argument. The range argument can take many values therefore, we would need to find the correct one that removes all the outliers. To understand how it works check out the Example given below −
Example
To hide outliners in base R boxplot, use the following snippet −
x<-c(-10,rpois(10,5),20) boxplot(x)
Output
If you execute the above given snippet, it generates the following Output −
To hide outliners in base R boxplot, add the following code to the above snippet −
x<-c(-10,rpois(10,5),20) boxplot(x,range=4)
Output
If you execute all the above given snippets as a single program, it generates the following Output −
- Related Articles
- How to display outliers in boxplot with different shape in base R?
- How to change the color of outliers in base R boxplot?\n
- How to fill the outliers with different color in base R boxplot?
- How to highlight outliers in a boxplot in R?
- How to extract the outliers of a boxplot in R?
- How to create a boxplot with outliers of larger size in R?
- How to create a horizontal boxplot in base R?
- How to create side-by-side boxplot in base R?
- How to create boxplot for multiple categories in base R?
- How to create boxplot in base R without axes labels?
- How to create a rectangle inside boxplot in base R?
- How to create a boxplot without frame in base R?
- How to display star for significance in base R boxplot?
- How to set the range for boxplot in base R?
- How to create boxplot for a list object in base R?

Advertisements