Search code examples
rvisualizationr-corrplot

How to remove label names in Corrplot


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


Solution

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

    corrplot(m, method = "circle", tl.pos='n')