Displaying 20 results from an estimated 6000 matches similar to: "biplot.princomp with loadings only"
2006 Jul 31
1
How does biplot.princomp scale its axes?
I'm attempting to modify how biplot draws its red vectors (among other
things). This is how I've started:
Biplot <- function(xx, comps = c(1, 2), cex = c(.6, .4))
{
## Purpose: Makes a biplot with princomp() object to not show arrows
## ----------------------------------------------------------------------
## Arguments: xx is an object made using princomp()
##
2010 Jun 30
3
Factor Loadings in Vegan's PCA
Hi all,
I am using the vegan package to run a prcincipal components analysis
on forest structural variables (tree density, basal area, average
height, regeneration density) in R.
However, I could not find out how to extract factor loadings
(correlations of each variable with each pca axis), as is straightforwar
in princomp.
Do anyone know how to do that?
Moreover, do anyone knows
2003 Apr 04
2
biplot
Dear list,
I want to perform a biplot, using customized titels for the x and y axis.
Setting xlab="" and ylab="" resulted in an error, e.g.:
> data(USArrests)
> biplot(princomp(USArrests),xlab="",ylab="")
Error in biplot.default(t(t(scores[, choices])/lam), t(t(x$loadings[, :
length of dimnames[1] not equal to array extent
>
How do I
2012 Apr 25
1
pca biplot.princomp has a bug?
x=rmvnorm(2000, rep(0, 6), diag(c(5, rep(1,5))))
x=scale(x, center=T, scale=F)
pc <- princomp(x)
biplot(pc)
There are a bunch of red arrows plotted, what do they mean? I knew that the
first arrow labelled with "Var1" should be pointing the most varying
direction of the data-set (if we think them as 2000 data points, each being
a vector of size 6). I also read from
2012 Apr 20
1
Quick question about princomp/biplot
Hi everyone.
I performing a simple PCA using the princomp function. Then, I use the
biplot function to show it. However, the function use line number to
represent samples. I would like to know if there's a way to use a dot
(point) instead of the line number when using the biplot function.
With regards,
Phil
--
View this message in context:
2005 Sep 16
1
About princomp
Hi,
I run the example for princomp for R211
I got the following error for biplot
> ## The variances of the variables in the
> ## USArrests data vary by orders of magnitude, so scaling is appropriate
> (pc.cr <http://pc.cr> <- princomp(USArrests)) # inappropriate
Erreur dans cov.wt(z) : 'x' must contain finite values only
> princomp(USArrests, cor = TRUE) # =^=
2009 Sep 02
4
"biplot" graphical options?
Dear R-help fellows
good afternoon.
I am struggling in the attempt to impose some graphical conditions (changing point symbols, colors, etc) to biplot function (I am using it to visualize the results of princomp) but I can't apparently manage to change anything but the axis... and I have been browsing manuals and vignettes without finding any explicit suggestions on how to operate...
Can
2008 Jan 18
2
plotting other axes for PCA
Hi R-community,
I am doing a PCA and I need plots for different combinations of axes (e.g.,
PC1 vs PC3, and PC2 vs PC3) with the arrows indicating the loadings of each
variables. What I need is exactly what I get using biplot (pca.object) but
for other axes.
I have plotted PC2 and 3 using the scores of the cases, but I don't get the
arrows proportional to the loadings of each variables on
2012 Jun 18
2
How can I "declutter"/make a biplot less messy in R
I am doing a principle component analysis on a dataset with a lot of
different variables and have constructed a biplot of the data.
Unfortunately, as can be seen on the attached image, the biplot is very
messy, cluttered, and hard to read. I have performed a few modifications
including outlier removal from a few of the variables, which has made the
plot better, however it still is too cluttered
2002 Apr 30
1
ylim in biplot does not seem to work (PR#1498)
Full_Name: Hinrich Göhlmann
Version: 1.4.1
OS: Windows 2000
Submission from: (NULL) (148.177.130.121)
Hi all,
I've searched the known bugs and hopefully I did not oversee this one...
When I have done a normal
zz<-princomp(na.omit(raw.data))
and I then draw a biplot with
biplot(zz,cex=c(.1,.7),col=c(5,1),choice=c(1,2),xlim=c(-2,2),ylim=c(-5,2))
the x axis gets set properly, but the y
2006 Sep 06
2
biplot label size
Which is the parameter that is used to decrease the size of ylabs
plotted in biplot? I tried playing with cex and cex.lab I am not getting
it right
pc <- princomp(USArrests)
biplot(pc, xlabs = rep("", nrow(USArrests)),ylabs=(colnames(USArrests)))
Thanks../Murli
[[alternative HTML version deleted]]
2004 Nov 04
2
biplot drawing conc ellipses
Is there an option to draw concentration ellipses in biplots ? It seems
really nice to summarize large number of points of each group.
Cheers../ Murli
2010 Apr 02
2
Biplot for PCA using labdsv package
Hi everyone,
I am doing PCA with labdsv package. I was trying to create a biplot graphs
in order to observe arrows related to my variables. However when I run the
script for this graph, the console just keep saying:
*Error in nrow(y) : element 1 is empty;
the part of the args list of 'dim' being evaluated was:
(x)*
could please someone tell me what this means? what i am doing
2009 Apr 28
1
colored PCA biplot
Hi-
I'm trying to make my PCA (princomp) colored. In my csv excel sheet, I have
the first column numbered according to the groupings I want to assign to the
PCA. I've played around with trying to set this first column as the color
vector, but haven't had any luck.
Any suggestions? Thanks,
Hillary
[[alternative HTML version deleted]]
2004 Nov 03
2
Princomp(), prcomp() and loadings()
In comparing the results of princomp and prcomp I find:
1. The reported standard deviations are similar but about 1% from
each other, which seems well above round-off error.
2. princomp returns what I understand are variances and cumulative
variances accounted for by each principal component which are
all equal. "SS loadings" is always 1.
3. Same happens
2010 May 06
1
how to get components / factors in factanal / princomp not loadings
Dear all,
i wonder if there?s a command to obtain the actual values of a principal component or a factor (not as.factor, but factanal) .
test=princomp(USArrests, cor = TRUE)
summary(test)
just outputs, standard deviation, Prop of Variance and cumulative proportion of variance.
test$loadings offers yet another proportion of variance scheme. why is that?
Apart from that:
Is there a
1999 Sep 09
1
princomp
Peter,
As I understand your Q. You probably have data that is similar to each other
like stock Prices for all RHS variable. In that case the difference between corr
and cov is not significant; however, if your RHS contains totally dissimilar
variables it matters a great deal. If x1 income, x2 job type, x3 Education
level, etc..., then taking cov of these variables would not be desireable
2005 Apr 21
1
biplot graphical problems
Hello,
I have a graphical problem concerning a biplot that I was ask to insert
in a scientific work to be published.
I've performed a princomp analysis and produce the relative biplot but
the labels of variables are out of margin (see attached file).
When I try to wide the x axis by the function xlim=c(i:j), nothing
happens if not a partial shift of the x range. Is there any specific
2013 Feb 11
1
Clean up biplot resulting from princomp()
Dear R-helpers,
The vectors in my biplot are completely obscured by the ~1400 labels R is
printing on my biplot. I don't really care about the labels. How can I make
the biplot without the annoying labels?
See attached, if that helps you see my problem.
Many thanks,
Mark Na
2009 Feb 24
1
biplot.princomp - changing score labels
Dear R helpers,
When producing a PCA biplot, vectors of environmental variables (as red
arrows with labels) and scores of the observations (black labels
(observation names)) are plotted by default. How can I change the
graphical output? Let's say I would like that the scores are plottet
only as symbols and not text. The only solution I found was this post in
the help archive