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 −
To remove Index in base R plot, use the code given below −
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 −
If you execute all the above given codes as a single program, it generates the following output −