- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- 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 create boxplot in base R without axes labels?
The boxplot can be created by using boxplot function in base R but the Y−axis labels are generated based on the vector we pass through the function. If we want to remove the axis labels then axes = FALSE argument can be used. For example, if we have a vector x then the boxplot for x without axes labels can be created by using boxplot(x,axes=FALSE).
Consider the below vector x and creating boxplot −
set.seed(777) x<−rnorm(50000,41.5,3.7) boxplot(x)
Creating the boxplot without Y−axis labels −
Let’s have a look at another example −
Removing Y−axis labels −
We can do the same for multiple boxplots if the data is contained in a data frame.
- Related Articles
- How to create a boxplot in base R without any axes except Y?
- How to create a boxplot without frame in base R?
- Create a ggplot2 graph without axes labels, axes titles and ticks in R.
- How to create a boxplot using ggplot2 for single variable without X-axis labels in R?
- How to create a horizontal boxplot in base R?
- Create a graph using ggplot2 without axes ticks and axes labels.
- How to create a bar graph using ggplot2 without horizontal gridlines and Y-axes labels in R?
- How to create side-by-side boxplot in base R?
- How to create boxplot for multiple categories in base R?
- How to create a rectangle inside boxplot in base R?
- How to create boxplot using ggplot2 without whiskers in R?
- How to create pie chart in base R with labels?
- How to create a base R plot without axes but keeping the frame of the plot?
- How to create boxplot for a list object in base R?
- How to create boxplot using ggplot2 without box border in R?