Description Usage Arguments Value Functions Examples
A convenience function for plotting PCA scatter plot for samples in ExpressionSet/MSnSet object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | plot_pca_v1(
eset,
phenotype = NULL,
show.ellispe = TRUE,
show.NA = TRUE,
legend.title.width = 20
)
plot_pca_v2(eset, phenotype = NULL, names = FALSE)
plot_pca_v3(
eset,
phenotype = NULL,
label = NULL,
point_size = 5,
show.ellispe = TRUE,
show.NA = TRUE,
legend.title.width = 20,
...
)
plot_pca_v4(
eset,
phenotype = NULL,
label = NULL,
point_size = 5,
show.ellispe = TRUE,
show.NA = TRUE,
legend.title.width = 20,
pc.index = c(1, 2),
...
)
|
eset |
eset (or most likely eset subclass) object |
phenotype |
character one of the |
show.NA |
logical Should the datapoints for which phenotype is unknown be shown? Default is TRUE |
legend.title.width |
integer Wrapping up too long legend titles. Passed to stringr::str_wrap as width argument. Default is 20. |
show.ellipse |
logical determining to plot 95% CI based on Hotelling's T-test or not. |
plot
plot_pca_v2
: Alternative PCA
plot_pca_v3
: Alternative PCA
plot_pca_v4
: Alternative PCA with option to select pair of principal components
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(srm_msnset)
plot_pca_v1(msnset, phenotype = "subject.type", show.ellispe = F)
plot_pca_v1(msnset, phenotype = "subject.type", show.ellispe = T)
plot_pca_v1(msnset)
data(srm_msnset)
plot_pca_v2(msnset, phenotype = "subject.type")
plot_pca_v2(msnset)
data(srm_msnset)
plot_pca_v3(msnset, phenotype = "subject.type")
plot_pca_v3(msnset, phenotype = "subject.type", label = "sample.id")
plot_pca_v3(msnset)
data(srm_msnset)
plot_pca_v4(msnset, phenotype = "subject.type", pc.index=c(1,3))
plot_pca_v4(msnset, phenotype = "subject.type", label = "sample.id", pc.index=c(1,3))
plot_pca_v4(msnset, pc.index=c(1,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.