How to increase font size in a plot in R?

前端 未结 7 1386
小鲜肉
小鲜肉 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 02:11

    Notice that "cex" does change things when the plot is made with text. For example, the plot of an agglomerative hierarchical clustering:

    library(cluster)
    data(votes.repub)
    agn1 <- agnes(votes.repub, metric = "manhattan", stand = TRUE)
    plot(agn1, which.plots=2)
    

    will produce a plot with normal sized text:

    enter image description here

    and plot(agn1, which.plots=2, cex=0.5) will produce this one:

    enter image description here

    0 讨论(0)
提交回复
热议问题