[R] understanding the parameters of 'spca' function of 'elasticnet' package

2014-07-19 Thread Adib Shafi
Hi all, i am trying to use the 'spca' function of 'elasticnet' package. But i am confused with the parameter 'para'. Basically the parameter 'para' depends on the parameter 'sparse'. If sparse="penalty", para is a vector of 1-norm penalty parameters. If sparse="varnum", para defines the number o

[R] understanding the parameters of 'spca' function of 'elasticnet' package

2014-07-18 Thread Adib Shafi
Hi all, i am trying to use the 'spca' function of 'elasticnet' package. But i am confused with the parameter 'para'. Basically the parameter 'para' depends on the parameter 'sparse'. If sparse="penalty", para is a vector of 1-norm penalty parameters. If sparse="varnum", para defines the number of

[R] PCA in predefined Groups??

2012-03-10 Thread SHAFI
Hi This has a simple answer but it has been eluding me nonetheless. I have been trying to build a PCA plot from scratch with the ability to plot predefined groups in different colors. I can plot PCA but I want it to plot with predefined groups(samples) with top 100 expressed genes. I have three