Displaying 2 results from an estimated 2 matches for "nipmat".
2008 Apr 01
1
superimpose histogram on biplot
...is. I have
been using the NIPALS function (http://biomserv.univ-lyon1.fr/~dray/
files/softwares/nipals.R) to run principal component analyses. Here
is a toy example.
source("http://biomserv.univ-lyon1.fr/~dray/files/softwares/nipals.R")
mat=matrix(runif(100,0,1), ncol=10, nrow=10)
nipmat=nipals(mat, nf=9)
scatter(nipmat)
In the plot generated by the above "scatter" command, there is a
histogram in the upper left corner. I want to know how to
superimpose that histogram on a similar plot, such as the following:
groups = as.factor(c(rep(1,2), rep(2,4), rep(3,4)))
s.ar...
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...St?phane Dray
<dray at biomserv.univ-lyon1.fr> wrote:
> Hi Jennie,
> if you have questions about ade4, you can use the adelist
> http://listes.univ-lyon1.fr/wws/info/adelist
>
> ade4 has the add.scatter.eig function which is exactly what you need. Try
>
> add.scatter.eig(nipmat$eig, xax=1, yax=2)
>
> Cheers,
>
>
>
> Jennie Lavine wrote:
>> Hi all,
>>
>> I've been trying to figure out how to superimpose a histogram on a
>> biplot that shows the relative contribution of each axis. I have
>> been using the NIPALS function...