1 year ago
#378566
antoine larousse
How to fix corrplot formatting issue in R
When I run the following chunk of code, I get a very small and unuseful correlation plot(see photo). I think it is because the column labels are too large. Is there any suggestion on how to fix this issue without modifying column names (maybe indicating only substring of names for example...)
numeric.var <- sapply(df_train, is.numeric)
corr.matrix <- cor(df_train[,numeric.var])
corrplot(corr.matrix, main="\n\nCorrelation Plot for Numerical Variables",
method="number")
r
dataframe
data-science
data-analysis
r-corrplot
0 Answers
Your Answer