get_roc_curve {PMAPscore} | R Documentation |
Plot the ROC curve
Description
The function 'get_roc_curve' uses to plot the ROC curve for predicting immunotherapy response.
Usage
get_roc_curve(roc_data, print.auc = TRUE, main = "Objective Response")
Arguments
roc_data |
A 2 X n data fram, which contain the immunotherapy response and risk score (generated by the function 'get_risk_score') for patients. |
print.auc |
Boolean. Should the numeric value of AUC be printed on the plot? |
main |
A main title for the plot. |
Value
No return, plot the ROC curve for immunotherapy response prediction.
Examples
#Load the data.
data(roc_data)
#perform the function `get_roc_curve`.
get_roc_curve(roc_data,print.auc=TRUE,main="Objective Response")
[Package PMAPscore version 0.1.1 Index]