CSlabelscompare {CSFA} | R Documentation |
With this function you can compare the automatic created labels based of the absolute loadings in CSanalysis
(which=8
) 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 result.available
will skip the analysis computation step and only regenerate the labels.
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 queries and references together) |
type |
Note that if none of the loadings is high/low in multiple factors, the two 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? |
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")