- 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 create a plot in base R with mixed font of plot title such as default and italics?
We sometimes want to highlight the main title of a plot and one of the ways to do it is changing the font of the title to a unique or using a mixed font for the title. If we want to used mixed font then we need to use the appropriate font style for the title inside as shown in the below examples.
Example1
> plot(rpois(10,5),main=substitute(paste(italic("Point Chart"),": Poisson Distribution")))
Output:
Example2
> plot(rpois(10,2),main=substitute(paste(bold("Point Chart"),": Poisson Distribution")))
Output:
- Related Articles
- How to display base R plot axes titles in italics?
- How to create a histogram with main title in the outer margin of plot window in base R?
- How to create a plot title with unicode characters using ggplot2 in R?
- How to change the Y-axis title in base R plot?
- How to change the font size of legend in base R plot?
- How to create a plot with dashed regression line in base R?
- How to display superscript for X-axis title in base R plot?
- How to create a plot in base R without margins?
- How to create a perpendicular arrow in base R plot?
- How to create a cumulative sum plot in base R?
- How to create empty bar plot in base R?
- How to create a plot in base R with tick marks of larger size?
- How to create a plot with reversed Y-axis labels in base R?
- How to create a colored box for base R plot?
- How to create a plot in R with gridlines using plot function?

Advertisements