Description Usage Arguments Value Author(s) See Also Examples
Plot figure for PCA/PLS-DA loadings
1 | plotLoading(object, out.tol = 0.9, label = 0, fig = "loading.png")
|
object |
object of pcaRes or PLS-DA |
out.tol |
control the points to show labels |
label |
0=>only show part of the labels, 1=>show all the labels, 3=none labels |
none
Bo Wen wenbo@genomics.cn
1 2 3 4 5 6 7 8 9 10 | para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
para <- missingValueImpute(para)
para <- transformation(para,valueID = "value")
res <- metaX::plotPCA(para,valueID="value",scale="uv",center=TRUE)
plotLoading(res$pca,fig="loading.png")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.