I am using pairs to plot mosaic plots of various variables in the SleepStudy dataset.
SleepStudy_factors <- SleepStudy[sapply(SleepStudy, is.factor)]
SleepStudy_factors <- table(SleepStudy_factors)
pairs(SleepStudy_factors, diag_panel = pairs_text,highlighting = 2,direction=c("v","h"))
With this, I get a pairs plot where the diagonal entries are the names of the variables and the different levels they have.
I am trying to decrease the font size of the text in the diagonal boxes , I have tried cex with text.panel but that is not making any difference.
pairs(SleepStudy_factors, diag_panel = pairs_text,highlighting = 2,direction=c("v","h") ,text_panel=list(cex=0.5))
Need some tips to decrease the text font?