How to remove label names in Corrplot
Asked Answered
E

1

6

I am trying to plot a visualization using Corrplot in R. I have several variables in my data frame but when I try to plot the chart it shows as a very shabby visualization. I am not sure how do I remove the names of the variables in the matrix and only represent them by numbers. I used a normal code to plot the chart. Please excuse my lack of awareness over here, I am very new to R and learning to know more.

Library(corrplot)
m <- cor(df)
corrplot(m, method = "circle")

My chart is here

Elegit answered 3/4, 2018 at 16:55 Comment(1)
Thanks @G5W! this works fine.Elegit
G
10

There is an input to corrplot specifically to control this. Just use

corrplot(m, method = "circle", tl.pos='n')
Genic answered 3/4, 2018 at 18:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.