Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Business Analyst
  3. Question
Business Analyst

How to increase font size in a plot in R?

Asked by Elizabeth Jordan May 18, 2021 1.5K views 1 answer
Share

About this question

I am confused. What is the right way to increase the font size of the text in the title, labels and other places of a plot?

For example

x <- rnorm(100)

hist(x, xlim=range(x), xlab= "Variable Label", 

     ylab="density", main="Title of plot", prob=TRUE, ps=30)

The ps argument does not change the font size (but it says in R Help for ?par that it is for "the point size of text (but not symbols)".

Also is it possible to separate changing the font size from the plotting function such as hist?

Your answer

1 Answer

More Business Analyst discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Business Analyst Blogs

Guides, tips and career advice on Business Analyst from JanBask experts.