I would like to make a correlation matrix like the one below. However, R keeps telling me
'Error in eigen(corr) : infinite or missing values in 'x''
I think this may be caused by NA values in my matrix. However, when I try to remove them by adding
'na.rm=TRUE,' it doesnt seem to help
circle.corr( cor(Plant, na.rm=TRUE,), order = TRUE, bg = "gray50",
col = colorRampPalette(c("blue","white","red"))(100) )
I have already loaded the function provided in the link above
Is it possible to create a new data.frame with the NA’s removed? if so, how?
Without data is hard to help you , but the error because your correlation matrix contains
NAandeigencan’t compute the eigen values in this cases.This should work :