Example 1:Italic Font in Title of Plot

In this example, we will be using all three functions to apply the italic font at the main of the bar plot given in the R programming language.

R




a = c(5,1,1,5,6,7,5,4,7,9)
barplot(a,main = substitute(
  paste(italic(
    'w3wiki is the best learning\
platform for CSE Graduates.'))))


Output:

How to Use Italic Font in R?

In this article, we are going to see how to use italic font using various functionalities in the R programming language.

Similar Reads

Italic font using substitute(), paste() and italic() functions

In this approach to use the italic function, the user needs to use three different functions within each other, and the italic font will be applied to the given text, starting with the substitute() function; within this function, the user needs to call the paste function as the argument of the substitute function, further within the paste function the user needs to call the italic() function as the argument of the paste function and then in the italic function the user has to pass the text which is needed to be in the italic font in the R programming language....

Example 1:Italic Font in Title of Plot

In this example, we will be using all three functions to apply the italic font at the main of the bar plot given in the R programming language....

Example 2: Italic Font on Axis Labels of Plot

...

Example 3: Italic Font with Text

In this example, we will be using all three functions to apply the italic font at the given bar plot at the x-axis and the y-axis of the barplot in the R programming language....