- 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 remove Y-axis labels in R?
When we create a plot in R, the Y-axis labels are automatically generated and if we want to remove those labels, the plot function can help us. For this purpose, we need to set ylab argument of plot function to blank as ylab="" and yaxt="n" to remove the axis title. This is a method of base R only, not with ggplot2 package.
Example
x<-rnorm(10) y<-rnorm(10) plot(x,y)
Output
Example
plot(x,y,ylab="",yaxt="n")
Output
- Related Articles
- How to display Y-axis labels with more decimal places in R?
- How to create a plot with reversed Y-axis labels in base R?
- How to create a dendrogram without X-axis labels in R?
- How to display X-axis labels inside the plot in base R?
- How to display X-axis labels with dash in base R plot?
- How to remove X or Y labels from a Seaborn heatmap?
- How to display positive sign for X-axis labels in R using ggplot2?
- How to increase the X-axis labels font size using ggplot2 in R?
- How to remove or hide X-axis labels from a Seaborn / Matplotlib plot?
- How to change the adjustment of the plot title using ggplot2 to align it above the Y-axis labels in R?
- How to change ordinal X-axis label to text labels using ggplot2 in R?
- How to use mtext function to create the X-axis labels in base R?
- How to hide the Y-axis tick labels on a chart in Python Plotly?
- How to X-axis labels to the top of the plot using ggplot2 in R?
- How to display long X-axis labels in a bar chart using plotly in R?

Advertisements