- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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 change the title of a graph to italic created by using plot function in R?
If a graph is created by specifying main title of the plot using the plot function then the default font is plain text. We might want to change the style of the font to italic so that the title gets a little more attraction of the viewers. This can be done by using font.main argument with plot function. The value 4 of font.main refers to the bold italic font and if we want to make it bold then we can use the value 3.
Consider the below vectors and create the scatterplot between the two with title of the plot −
Example
x<-rnorm(10,2,1.5) y<-rnorm(10,2,1) plot(x,y,main="Scatterplot")
Output
Creating the same plot with title in italics −
Example
plot(x,y,main="Scatterplot",font.main=4)
output
- Related Articles
- How to change the position of the title of a plot which is created using plot function in R?
- How to change the background color of a plot created by using plot function in R?
- How to change the color and size of the axes labels of a plot created by using plot function in R?
- How to change the title size of a graph using ggplot2 in R?
- How to change the angle of annotated text in plot created by using ggplot2 in R?
- How to change legend values in a bar plot created by using ggplot2 in R?
- How to reduce the size of the area covered by legend in R for a plot created by using plot function?
- How to change the bars color to grey shade of a bar graph created by using ggplot2 in R?
- How to write the plot title in multiple lines using plot function in R?
- How to add a mathematical expression in axis label in a plot created by using plot function in R?
- How to change the thickness of the borders of bars in bar plot created by using ggplot2 in R?
- How to change the Y-axis title in base R plot?
- How to remove the border of the legend of a chart created by plot function in R?
- How to represent the legend in a plot created by using plot function with colored straight lines or stars in R?
- How to change the X-axis labels for boxplots created by using boxplot function in R?

Advertisements