Skip to content
Plotly templates

Math — Plot: Bland–Altman Agreement

Differences between two methods against their mean.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"markers","name":"difference","marker":{"color":"#2563eb","size":9},
     "x":[10,20,30,40,50,60],"y":[1,-0.5,0.8,-1.2,0.3,-0.8]},
    {"type":"scatter","mode":"lines","name":"mean diff","line":{"color":"#16a34a","width":2},
     "x":[10,60],"y":[-0.07,-0.07]},
    {"type":"scatter","mode":"lines","name":"limits","line":{"color":"#dc2626","width":2,"dash":"dash"},
     "x":[10,60],"y":[1.8,1.8]}
  ],
  "layout": {"title":"Bland-Altman plot","xaxis":{"title":"mean of two methods"},"yaxis":{"title":"difference"}}
}