0

I have to graph a correlation matrix and this is my code (the data is in Spanish but I don't think that is a problem)

library(corrplot)
round(cor(fin),2)
correlacion<-round(cor(fin),1)
corrplot(correlacion, method="number", type="upper")

I get the following image: enter image description here

Since I am working with "a lot" of data, the graph does not look very good, I need to place it in my report but I would like it to look better, even if it covers more space. How can I solve this problem?

(Edit: this is fin)

  • 1
    You need to give us some data to work with. We don't have `fin`, so we can't run your code. If I replace that variable with `mtcars`, everything looks fine, not nearly as crowded as yours, even if I give it long column names. – user2554330 Apr 27 '22 at 15:51
  • I have placed a link to download fin.csv, I hope it is enough – Luis Alexandher Apr 27 '22 at 16:16
  • No, please see https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example . – user2554330 Apr 27 '22 at 16:42

0 Answers0