Skip to content
Plotly templates

Bland-Altman Plot

Agreement between two measurement methods with ±1.96 SD limits.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    { "type":"scatter","mode":"markers",
      "x":[100,102,98,105,110,99,115,108,112,118,103,109,107,114,116],
      "y":[2.0,-1.5,3.0,-2.0,0.5,4.0,-3.0,1.0,-0.5,-4.0,2.5,-1.0,3.5,-2.5,1.5],
      "marker":{"size":9,"color":"#3666ff"},"name":"Pair" },
    { "type":"scatter","mode":"lines","name":"Mean",
      "x":[95,120],"y":[0.27,0.27],"line":{"color":"#16a34a","width":2} },
    { "type":"scatter","mode":"lines","name":"+1.96 SD",
      "x":[95,120],"y":[5.4,5.4],"line":{"color":"#dc2626","dash":"dash"} },
    { "type":"scatter","mode":"lines","name":"-1.96 SD",
      "x":[95,120],"y":[-4.9,-4.9],"line":{"color":"#dc2626","dash":"dash"} }
  ],
  "layout":{
    "title":"Bland-Altman — Method A vs Method B",
    "xaxis":{"title":"Mean of two methods"},
    "yaxis":{"title":"Difference (A - B)"}
  }
}