moose_biplot | R Documentation |
This function estimates the correlation structure among two factors, using a chi-square test and the Crammer's V statsitic
moose_biplot( PCA, dataframe_of_phenotypes, plot_top_N_phenotypes = 3, grouping1 = NA, grouping1NAME = NA, grouping2 = NA, grouping2NAME = NA, cir.size = 1.75, scalearrows = FALSE )
PCA |
a prcomp object |
dataframe_of_phenotypes |
a dataframe of phenotypes to correlate against PC1 and PC2 of the prcomp object. The function currently only uses quantitative traits in the analysis. Categorical is not possible, yet. |
plot_top_N_phenotypes |
an integer specifying how many of the top correlated phenotypes should be plotted |
groupfactor |
a vector of class categorical, of the sample length, as the number fo data points in PC1 and PC2. This categorical data will aid in color coding your plotted points. |
moose_biplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.