on-internet
← Community

How to collect axes in patchwork layout of several plots?

Stack Overflow ·

Using patchwork, I plot a layout of four correlation plots. I'd like the y-axis labels to show only for the plots on the left-hand side and the x-axis labels only for the two bottom plots. But neither axes = collect from patchwork (as suggested here) nor the function collect_axes from package ggguides seem to work with the plots generated by ggcorrplot. Is there a workaround or alternative way? library(ggcorrplot) library(patchwork) library(ggguides) corr <- ggcorrplot(round(cor(mtcars), 1)) corr + corr + corr + corr + plot_layout(ncol = 2, guides = "collect", axes = "collect") collect_axes(co

Comments

Sign in or sign up to comment and upvote.

No comments yet.