LAPP.plot.PCA()
takes in a modified PCA object returned by LAPP.PCA() and plots it.
Uses ggplot2.
1 2 3 | LAPP.plot.PCA(pca, dim1 = 1, dim2 = 2, type = "density",
colors = c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2",
"#D55E00", "#CC79A7"))
|
pca |
modified PCA object returned by LAPP.PCA(). Can take up to 8 different HLA alleles. |
dim1 |
Index of PC to plot along the x-axis. Defaults to 1 |
dim2 |
Index of PC to plot along the y-axis. Defaults to 2 |
type |
Describes the type of plot to make. Either 'points' (default) for scatter plo,t or 'density' for a 2D KDE density graph. |
type |
How the PCA should be plotted. Either 'points' for scatterplot or 'density' for an automated 2D KDE plot (default). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.