powered by
Performs an ordination and outputs a PCA plot using a metabolomics count data frame and metabolomics metadata
PCA_plot( count_data, metadata, variable, color, response_variable = "Metabolite", label = FALSE, size = 2, ellipse = FALSE )
Metabolomics count data
Metabolomics metadata
The independent variable you wish to compare and contrast
String of what you want to color by. Usually should be the same as variable.
String of the response_variable, usually should be "Metabolite"
TRUE or FALSE, whether to add point labels or not
An integer for point size.
TRUE or FALSE, whether to add confidence interval ellipses or not.
PCA_plot(count_data = c57_nos2KO_mouse_countDF, metadata = c57_nos2KO_mouse_metadata, variable = "Treatment", color = "Treatment", response_variable = "Metabolite")
Run the code above in your browser using DataLab