View source: R/rf_plot_functions.R
plot_rf_PCA | R Documentation |
PCA plot of the proximity matrix from a random forest classification model
plot_rf_PCA(rf_list, color, size, ellipse = FALSE, label = FALSE)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.