Skip to content
Plotly templates

Calibration Plot

Predicted vs observed risk for a clinical-prediction model.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {
      "type":"scatter","mode":"markers+lines",
      "x":[0.05,0.15,0.25,0.35,0.45,0.55,0.65,0.75,0.85,0.95],
      "y":[0.07,0.14,0.22,0.30,0.40,0.52,0.68,0.71,0.84,0.93],
      "marker":{"size":10,"color":"#3666ff"},
      "line":{"color":"#3666ff"},
      "name":"Model"
    },
    {
      "type":"scatter","mode":"lines",
      "x":[0,1],"y":[0,1],
      "line":{"color":"#94a3b8","dash":"dash"},
      "name":"Perfect calibration"
    }
  ],
  "layout": {
    "title":"Calibration plot — predicted vs observed",
    "xaxis":{"title":"Predicted risk","range":[0,1]},
    "yaxis":{"title":"Observed risk","range":[0,1]},
    "width":520,"height":520
  }
}