plotPCA | R Documentation |
PCA plot Please note: scale will be performed autmaticly
plotPCA(
df,
group,
palette = "npg",
ellipse = FALSE,
legend.title = "Group",
main.title = "",
alpha = 1,
return.percentage = FALSE,
label = NULL,
plot3D = FALSE,
show.sample.name = FALSE,
point.size = 2
)
df |
Row: sample, Column: gene expression |
palette |
Default npg. The color palette to be used for coloring or filling by groups. Allowed values include "grey" for grey color palettes; brewer palettes e.g. "RdBu", "Blues", ...; or custom color palette e.g. c("blue", "red"); and scientific journal palettes from ggsci R package, e.g.: "npg", "aaas", "lancet", "jco", "ucscgb", "uchicago", "simpsons" and "rickandmorty". |
ellipse |
Whether to add elipse. |
legend.title |
legend.title |
main.title |
main title |
return.percentage |
If TRUE, reture PCA percentage instead of PCA lot |
point.size |
Default 2 |
plotPCA(df, group, "aaas")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.