How to auto adjust R figure axis labels to matrix size?
I want to make the fontsize of the y-axis labels adjustable to the input data size on the y-axis like in Fig. 3, in contrast to the current situation in Fig. 1-2 where labels are not next to the corresponding lines. Code library("corrgram") # https://stackoverflow.com/a/40387233/54964 ids <- seq(1,18) x_at <- seq(0.075, 0.925, length.out = length(ids)) y_at <- seq(0.075, 0.91, length.out = length(ids)) createLabels <- function(xlab, ylab, x_labels, y_labels){ ids <- y_labels # assume here x_at <- seq(0.075, 0.925, length.out = length(ids)) y_at <- seq(0.075, 0.91, length.out = length(ids))