How to increase font size in a plot in R?

前端 未结 7 1411
小鲜肉
小鲜肉 2020-11-28 01:21

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

For example

x <- rnorm(100)
h         


        
7条回答
  •  心在旅途
    2020-11-28 01:58

    I came across this when I wanted to make the axis labels smaller, but leave everything else the same size. The command that worked for me, was to put:

    par(cex.axis=0.5)
    

    Before the plot command. Just remember to put:

    par(cex.axis=1.0)
    

    After the plot to make sure that the fonts go back to the default size.

提交回复
热议问题