Description Usage Arguments Examples
With this function you can compare the automatic created labels based of the absolute loadings in CSanalysis (which=9
) with your own provided labels to investigate if there is relation between them.
See the type
parameter which two plots can be created.
Note that the automatic created factor labels in CSanalysis denote which factors this loading has a high/low value and these can be regenerated (with different a different cut-off) by simply running CSanalysis again. Providing resultavailable
will skip the analysis computation step and only regenerate the labels.
1 2 | CSlabelscompare(CSresult, labels, type = "factors",
basefilename = "CSanalysis", plot.type = "device")
|
CSresult |
Object of CSresult S4 Class. |
labels |
Provide a vector with labels. (Length should be the number of references and queries together) |
type |
Note that if none of the loadings is high/low in multiple factors, the types of plots should be identical. |
basefilename |
Base of the filename when saving the graph as a pdf ( |
plot.type |
How should the plots be outputted? |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
data("dataSIM",package="CSFA")
Mat1 <- dataSIM[,c(1:6)]
Mat2 <- dataSIM[,-c(1:6)]
MFA_out <- CSanalysis(Mat1,Mat2,"CSmfa",component.plot=1,which=c())
labels <- rep("Noise",ncol(dataSIM))
labels[c(1:31,332:341)] <- "Signal"
CSlabelscompare(CSresult=MFA_out,labels=labels,type="factors")
CSlabelscompare(CSresult=MFA_out,labels=labels,type="factorlabels")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.