degPCA.Rd
nice plot using ggplot2 from prcomp function
degPCA(counts, metadata = NULL, condition = NULL, pc1 = "PC1", pc2 = "PC2", name = NULL, shape = NULL, data = FALSE)
counts | matrix with count data |
---|---|
metadata | dara.frame with sample information |
condition | character column in metadata to use to color samples |
pc1 | character PC to plot on x-axis |
pc2 | character PC to plot on y-axis |
name | character if given, column in metadata to print label |
shape | character if given, column in metadata to shape points |
data | Whether return PCA data or just plot the PCA. |
if results <-
used, the function return the output
of prcomp()
.