powered by
PCA plot of the proximity matrix from a random forest classification model
plot_rf_PCA(rf_list, color, size, ellipse = FALSE, label = FALSE)
The output from the random_forest function. This only works on classification models.
A grouping factor. Use the one that was the LHS of your model parameter in the random_forest funciton
The number for point size in the plot
TRUE or FALSE. Whether to plot with confidence interval ellipses or not.
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)
Run the code above in your browser using DataLab