Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Axis labels and legend overlap corrplot with type = "upper" and only NAs in external col/rows #94
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doi90 commentedMay 24, 2017
Hello,
I'm trying to make corrplots of type = "upper" and diag = FALSE, but for datasets where I end up with only NA values in the "external" (first/last) rows/columns of the matrix I run in to an issue where the axis labels and legend overlap to plot. The NA values still get plotted, but rows/columns that had only NA values don't get labelled. You could say the plot "zooms in" on the non-NA data.
Is there a way around this problem? I'm running a model comparison over multiple datasets so I need to keep my corrplots the same dimension with some NA values rather than dropping rows/columns to make the figure play nice.
A reproducible example: