betamatPCAvis | R Documentation |
betamatPCAvis()
will produce a visualization from the prcomp
object
generated from betamatPCA()
.
betamatPCAvis(x, geom = "point", groups, reps, colours)
x |
The |
geom |
The geom style to be aplied to the plot. |
groups |
A vector containing the metadata variable being explored. |
reps |
The number of replicates conducted in the initial |
colours |
A vector containing colour values. |
A ggplot
object.
library(mirlyn)
data(example)
mirlexample <- mirl(example, rep = 10)
betamatPCA_object <- betamatPCA(mirlexample)
## Not run:
betamatPCAvis(betamatPCA_object, groups = c("A", "B", "C", "D", "E", "F"),
reps = 10, colours = c("#000000", "#E69F00", "#0072B2", "#009E73",
"#F0E442", "#D55E00"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.