plotTraining: Plot function for a training object

View source: R/plotTraining.R

plotTrainingR Documentation

Plot function for a training object

Description

This is to plot a histogram, a scatter plot, and a ROC (Receiver Operating Characteristic curve) curve for a given training object

Usage

plotTraining(trainObj, plotName, xshift = -0.05, yshift = 0.02, breaks = 30)

Arguments

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

Author(s)

Aixiang Jiang


ajiangsfu/PRPS documentation built on April 29, 2023, 10:13 p.m.