i have database in excel i need to calculate the correlation betwen all variables in my database and after do graphique i need to know how do that using R i use :
M<-cor(Donn2[,-1])
> M
Litrage produit Rapportinjection Format Nbre passage eau
Litrage produit 1.0000000 0.20415852 0.27658465 0.67426686
Rapportinjection 0.2041585 1.00000000 -0.12380173 0.31795429
Format 0.2765846 -0.12380173 1.00000000 -0.05253294
Nbre passage eau 0.6742669 0.31795429 -0.05253294 1.00000000
Pertes totales PF(%) -0.5233907 -0.07581707 -0.52733899 -0.22555675
Pertes PF secteur 3 (eur) NA NA NA NA
Coût pertes Secteur 3 (L) 0.6742669 0.31795429 -0.05253294 1.00000000
Pertes totales PF(%) Pertes PF secteur 3 (eur) Coût pertes Secteur 3 (L)
Litrage produit -0.52339068 NA 0.67426686
Rapportinjection -0.07581707 NA 0.31795429
Format -0.52733899 NA -0.05253294
Nbre passage eau -0.22555675 NA 1.00000000
Pertes totales PF(%) 1.00000000 NA -0.22555675
Pertes PF secteur 3 (eur) NA 1 NA
Coût pertes Secteur 3 (L) -0.22555675 NA 1.00000000
i have some value with NA what that mane is just in one variable when i have NA
and when i use ;
> corrplot(M, type="upper")
i have coorgrame i have something like that :
why i get result like that with value NA ?
thank you