Search code examples
ggplot2visualizationcorrelationpsych

How to increase the size of the text inside the red circle of the cor plot?


How to increase the size of the text inside the red circle of the cor plot? click here

Used code:

par(mar=c(1,1,1,1))
pairs.panels(data, 
             method = "pearson", 
             hist.col = "#00AFBB",
             density = TRUE,  
             ellipses = TRUE,
             pch = 21,
             cex = 1.5,
             cex.axis = 1.8,
             lwd = 2,
             rug = TRUE,
             stars = TRUE
)

Solution

  • Finally, I got the answer and i.e. to add the argument cex.labels = 2.5,

    the final code is

    library(psych)
    par(mar=c(1,1,1,1))
    pairs.panels(data, 
                 method = "pearson", 
                 hist.col = "#00AFBB",
                 density = TRUE,  
                 ellipses = TRUE,
                 pch = 21,
                 cex = 1.5,
                 cex.axis = 1.8,
                 cex.labels = 2.5,
                 lwd = 2,
                 rug = TRUE,
                 stars = TRUE
    )