Skip to content

Data Science Tutorials

  • Home
  • R
  • Statistics
  • Course
  • Machine Learning
  • Guest Blog
  • Contact
  • About Us
  • Toggle search form
  • Top Data Science Examples You Should Know 2023
    Top Data Science Applications You Should Know 2023 Machine Learning
  • Select the First Row by Group in R
    Select the First Row by Group in R R
  • How to create Sankey plot in R
    How to create a Sankey plot in R? R
  • Control Chart in Quality Control
    Control Chart in Quality Control-Quick Guide Statistics
  • How to put margins on tables or arrays in R?
    How to put margins on tables or arrays in R? R
  • The Uniform Distribution in R
    The Uniform Distribution in R R
  • Top Reasons To Learn R
    Top Reasons To Learn R in 2023 Machine Learning
  • Subsetting with multiple conditions in R
    Subsetting with multiple conditions in R R
How to Use Italic Font in R

How to Use Italic Font in R

Posted on September 27September 23 By Jim No Comments on How to Use Italic Font in R
Tweet
Share
Share
Pin

How to Use Italic Font in R, to create an italic typeface in R plots, use the basic syntax shown below.

How to Use Italic Font in R

These examples demonstrate how to apply this syntax in real-world situations.

Example 1: The plot’s title in italic font

The code below demonstrates how to use the italic font in the plot title in R:

Specify data

x <- c(1, 2, 3, 4, 4, 5, 6, 6, 7, 9)
y <- c(18, 12, 29, 10, 12, 13, 15, 12, 15, 25)

Make a scatterplot with an italicized title.

plot(x, y, main = substitute(paste(italic('Scatterplot of x vs. y'))))

Note that we can also choose to make only some of the title’s words italic:

make a scatterplot with only a portion of the title italicized.

plot(x, y, main = substitute(paste(italic('Scatterplot of'), ' x vs. y')))

Example 2: Italic Font on Axis Labels of Plot

create a scatterplot with axes labels in italics

plot(x, y, xlab = substitute(paste(italic('X Label'))),
           ylab = substitute(paste(italic('Y Label'))))

Example 3: Italic Font with Text in Plot

Now add italic text at location x=3, y=16

text(3, 16, substitute(paste(italic('datasciencetut.com'))))

Check your inbox or spam folder to confirm your subscription.

Further Resources:-
The following tutorials provide guidance on using R.

One way ANOVA Example in R-Quick Guide – Data Science Tutorials

How to Replace String in Column using R – Data Science Tutorials

How to Calculate Lag by Group in R? – Data Science Tutorials

Tweet
Share
Share
Pin
R

Post navigation

Previous Post: How to Use Bold Font in R with Examples
Next Post: How to Find Quartiles in R?

Related Posts

  • How to Use Mutate function in R
    How to Use Mutate function in R R
  • How to Find Unmatched Records in R
    How to Find Unmatched Records in R R
  • Linear Interpolation in R
    Linear Interpolation in R-approx R
  • Change ggplot2 Theme Color in R
    Change ggplot2 Theme Color in R ggthemr Package R
  • How to Create Summary Tables in R
    How to Create Summary Tables in R R
  • The Multinomial Distribution in R
    The Multinomial Distribution in R R

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • About Us
  • Contact
  • Disclaimer
  • Guest Blog
  • Privacy Policy
  • YouTube
  • Twitter
  • Facebook
  • Defensive Programming Strategies in R
  • Plot categorical data in R
  • Top Data Modeling Tools for 2023
  • Ogive Graph in R
  • Is R or Python Better for Data Science in Bangalore

Check your inbox or spam folder to confirm your subscription.

  • Data Scientist Career Path Map in Finance
  • Is Python the ideal language for machine learning
  • Convert character string to name class object
  • How to play sound at end of R Script
  • Pattern Searching in R
  • How to Filter Rows In R
    How to Filter Rows In R? R
  • droplevels in R with examples
    droplevels in R with examples R
  • How to Group and Summarize Data in R
    How to Group and Summarize Data in R R
  • How to Use the Multinomial Distribution in R
    How to Use the Multinomial Distribution in R? R
  • How to Recode Values in R
    How to Recode Values in R R
  • Statistical test assumptions and requirements
    Statistical test assumptions and requirements Statistics
  • How do confidence intervals work
    How do confidence intervals work? R
  • best books about data analytics
    Best Books About Data Analytics Course

Copyright © 2023 Data Science Tutorials.

Powered by PressBook News WordPress theme