Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8947639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:48:59+00:00 2026-06-15T12:48:59+00:00

I m plotting one stacked bar plot where i need to write legend and

  • 0

I m plotting one stacked bar plot where i need to write legend and title in Times New Roman Font. By Default it is in Arial font. How can i change it?

grid.text("title", x = 0.33, y = 1, just = c("left", "top"),
           gp = gpar(fontsize = 18, fontface = "bold"))    

I used one more parameter fontfamily = "Times" but i get error message. How can i use Times font with it?

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:49:01+00:00Added an answer on June 15, 2026 at 12:49 pm

    Try using font= instead of fontfamily=.

    For more information, see the blog, Specifying Fonts in R, by Paul Murrell, The University of Auckland. Also see Changing the fonts in R plots, by James Keirstead.

    This question is similar to another SO question, Fonts in R plots.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is kinda a build-on on my previous post creating an stacked area/bar plot
I need help on plotting the bar chart to show daily based statistics like
I want to make a bar plot where one of the values is much
When using the d3 plotting library Rickshaw the renderer (either area, line, or bar)
I have one y variable, which I am trying to plot against two related
I am looking for plotting tools capable of using more than one or two
I have an application which requires plotting two locations on google map ? One
A minor question about plotting stacked barplot in R. The stacked bars represent the
I'm plotting two vectors against one another. I would like to vary the symbol
Possible Duplicate: Plotting 4 curves in a single plot, with 3 y-axes assuming I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.