plot_rf_PCA {omu} | R Documentation |
plot_rf_PCA
Description
PCA plot of the proximity matrix from a random forest classification model
Usage
plot_rf_PCA(rf_list, color, size, ellipse = FALSE, label = FALSE)
Arguments
rf_list |
The output from the random_forest function. This only works on classification models. |
color |
A grouping factor. Use the one that was the LHS of your model parameter in the random_forest funciton |
size |
The number for point size in the plot |
ellipse |
TRUE or FALSE. Whether to plot with confidence interval ellipses or not. |
label |
TRUE or FALSE. Whether to include point labels or not. |
Examples
rf_list <- random_forest(c57_nos2KO_mouse_countDF,c57_nos2KO_mouse_metadata,
Treatment ~.,c(60,40),500)
plot_rf_PCA(rf_list = rf_list, color = "Treatment", size = 1.5)
[Package omu version 1.1.2 Index]