Dear R help
I am having difficulty doing a biplot of the first two factors of a factor
analysis. I presume it is because the values in factor 2 for Milk and NUTS
are not displayed in the component loadings.
Loadings:
Factor1 Factor2
RedMeat 0.561 -0.112
WhiteMeat 0.593 -0.432
Eggs 0.839 -0.195
Milk 0.679
Fish 0.300 0.951
Cereals -0.902 -0.267
Starch 0.542 0.253
Nuts -0.760
Fr.Veg -0.145 0.325
It has no problem doing a normal plot using
plot(eurofood.fa$scores[,1], eurofood.fa$scores[,2])
But when I ask for a biplot I get
biplot(eurofood.fa$scores[,1], eurofood.fa$scores[,2])
Error in 1:n : NA/NaN argument
What can I do to overcome this??
Brett Stansfield
Dear R
When I go to do the biplot
biplot(eurofood.fa$scores, eurofood$loadings)
Error in 1:p : NA/NaN argument
I think this is because the component loadings don't show values for some
variables
Loadings:
Factor1 Factor2
RedMeat 0.561 -0.112
WhiteMeat 0.593 -0.432
Eggs 0.839 -0.195
Milk 0.679
Fish 0.300 0.951
Cereals -0.902 -0.267
Starch 0.542 0.253
Nuts -0.760
Fr.Veg -0.145 0.325
So how can I get it to do a biplot? Is there a way for R to recognise
component loadings less than the cut off value??
Brett Stansfield
Maybe Matching Threads
- FileNotFoundException en RWeka
- MINNESOTA: TwinCities Asterisk Users Group Meeting, this Saturday. Valentine's Day Feb/14/2009 11:30am
- Bug#649349: xen-hypervisor-4.1-amd64: pygrub fails due to invalid opcode trapped
- [LLVMdev] llvm backend tutorial
- asign variables in a "for" loop