 
  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 change the color and size of the axes labels of a plot created by using plot function in R?
The default size of axes labels created by using plot function does not seem to be large enough and also it does not look appealing. Therefore, we might want to change their size and color because the appearance of a plot matters a lot. This can be done by setting colors with col.lab and size with cex.lab.
Example
> x<-rnorm(10) > y<-rnorm(10,0.5) > plot(x,y)
Output

Changing the color of axes labels and the size of those axes labels −
> plot(x,y,col.lab="blue",cex.lab=2)
Output

> plot(x,y,col.lab="dark blue",cex.lab=3)
Output

Advertisements
 