moose_biplot: A Function to describe each feature in a data frame of...

View source: R/moose_biplot.R

moose_biplotR Documentation

A Function to describe each feature in a data frame of metabolite data.

Description

This function estimates the correlation structure among two factors, using a chi-square test and the Crammer's V statsitic

Usage

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
)

Arguments

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.

Examples

moose_biplot()

hughesevoanth/moosefun documentation built on Aug. 22, 2022, 7:04 a.m.