# How to create a plot in base R with mixed font of plot title such as default and italics?

R ProgrammingServer Side ProgrammingProgramming

#### Artificial Intelligence : The Future Of Programming

15 Lectures 54 mins

#### Beyond Basic Programming - Intermediate Python

Most Popular

36 Lectures 3 hours

#### C Programming from scratch- Master C Programming

Best Seller

60 Lectures 8 hours

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")))

## Example2

> plot(rpois(10,2),main=substitute(paste(bold("Point Chart"),": Poisson Distribution")))

## Output:

Updated on 23-Nov-2020 10:14:51