View source: R/biomarker_utils.R
PlotProbViewTest | R Documentation |
Plot of predicted class probabilities. On the x-axis is the proability, and the y-axis is the index of each predicted sample based on the probility. The samples are turned into separations at the x-axis. This plot can be created for multivariate ROC curve analysis using SVM, PLS, and RandomForest. Please note that sometimes, not all samples will be tested, instead they will be plotted at the 0.5 neutral line.
PlotProbViewTest(mSetObj=NA, imgName, format="png", dpi=72, mdl.inx, show, showPred)
mSetObj |
Input the name of the created mSetObj (see InitDataObjects) |
imgName |
Input a name for the plot |
format |
Select the image format, "png", of "pdf". |
dpi |
Input the dpi. If the image format is "pdf", users need not define the dpi. For "png" images, the default dpi is 72. It is suggested that for high-resolution images, select a dpi of 300. |
mdl.inx |
Model index, 0 means to compare all models, -1 means to use the best model, input 1-6 to plot a ROC curve for one of the top six models |
show |
1 or 0, if 1, label samples classified to the wrong groups |
showPred |
Show predicted samples |
Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.