Description Usage Arguments Details Value
This function performs a principal component analysis with the prcomp function and uses the prcomp class object to plot the three first principal components.
1 |
est_noctrls |
Numeric matrix where columns are samples and rows genes. est_noctrls corresponds to a matrix without controls. |
picname |
Character with the output file name. |
conditions |
Optional. Vector with sample conditions to colour sample names in the plot. conditions vector has to have the same order as the order of samples in the columns of the input expression matrix. |
colors |
Optional. Vector with colors corresponding to each sample. If this parameter is not defined, default colors will be used. |
dist |
Distance where the name of the sample is located with respect to the corresponing point in the plot. Optimal distance is different deppending on the sample number and PC distances. Default is 2. |
resDir |
Output results directory. Default is ResultsDir. |
The first three principal components obtained with the prcomp function capture part of the variability explaining the sample distribution. Each PC is represented in an axis of the plot, x.axis=PC1, y.axis=PC2 and z.axis=PC3. This plot is useful to check the overall similarity among samples. Column names in the expression matrix are used as sample names.
Output is a .png file with the results in resDir.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.