Skip to content
Back to formatted view

Raw Message

Message-ID: <1113545682.14028.4.camel@biol102145.oulu.fi>
Date: 2005-04-15T06:14:42Z
From: Jari Oksanen
Subject: Factor Analysis Biplot
In-Reply-To: <3542A1BF5AE1984D9FF577DA2CF8BA9868B221@MSX2>

On Fri, 2005-04-15 at 12:49 +1200, Brett Stansfield wrote:
> Dear R
Dear S,

> When I go to do the biplot
> 
> biplot(eurofood.fa$scores, eurofood$loadings)
> Error in 1:p : NA/NaN argument

Potential sources of error (guessing: no sufficient detail given in the
message):

- you ask scores from eurofood.fa and loadings from eurofood: one of
these names may be wrong.
- you did not ask scores in factanal (they are not there as default, but
you have to specify 'scores').

> 
> 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
> 
The cut values are there, but they are not displayed.  To see this, you
may try:

unclass(eurofood$loadings)
print(eurofuud$loadings, cutoff=0)

cheers, J
-- 
Jari Oksanen -- Dept Biology, Univ Oulu, 90014 Oulu, Finland
email jari.oksanen at oulu.fi, homepage http://cc.oulu.fi/~jarioksa/