plotTraining | R Documentation |
This is to plot a histogram, a scatter plot, and a ROC (Receiver Operating Characteristic curve) curve for a given training object
plotTraining(trainObj, plotName, xshift = -0.05, yshift = 0.02, breaks = 30)
trainObj |
a training object from LPStraining/LPStrainingWithWeights, or PRPStraining/PRPStrainingWithWeights, or PStraining/PStrainingWithWeights |
plotName |
a string variable to indicate the file name to save, it should include path and plot file name (without .pdf part) |
xshift |
a numeric variable to indicate how much value shift along x-axis to move the label position for the natural 0 cutoff point, default value is -0.05, which is used for ROC plot but not meaningful for LPS training objects |
yshift |
a numeric variable to indicate how much value shift along y-axis to move the label position for the natural 0 cutoff point, default value is 0.02, which is used for ROC plot but not meaningful for LPS training objects |
breaks |
a integer to indicate how many breaks in the histogram |
Aixiang Jiang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.