 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- 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 Index in base R plot?
When we do not pass any title for X-axis then the default is Index and if we want to remove it then xlab argument needs to be used inside the plot function.
For example, if we want to create a plot of first hundred values without Index on X-axis then we can use the command mentioned below −
plot(1:100,xlab="")
Example
To remove Index in base R plot, use the code given below −
plot(1:10)
Output
If you execute the above given code, it generates the following output −

To remove Index in base R plot, add the following code to the above code −
plot(1:10,xlab="")
Output
If you execute all the above given codes as a single program, it generates the following output −

Advertisements
 