Skip to content
Plotly templates

ROC Curve

Receiver operating characteristic with AUC labels.

Template previewPlotly
Rendering…

Make it your own.

{
  "data":[
    {"type":"scatter","mode":"lines","name":"Model A (AUC=0.94)","x":[0,0.05,0.1,0.2,0.4,0.6,0.8,1],"y":[0,0.6,0.78,0.88,0.94,0.97,0.99,1]},
    {"type":"scatter","mode":"lines","name":"Model B (AUC=0.81)","x":[0,0.1,0.2,0.3,0.5,0.7,0.9,1],"y":[0,0.45,0.6,0.7,0.82,0.9,0.96,1]},
    {"type":"scatter","mode":"lines","name":"Random","x":[0,1],"y":[0,1],"line":{"dash":"dot","color":"#94a3b8"}}
  ],
  "layout":{"title":"ROC Curve","xaxis":{"title":"False Positive Rate"},"yaxis":{"title":"True Positive Rate"}}
}