Skip to content
Plotly templates

Effective Reproduction Number Over Time

Rt with credible interval, R=1 threshold and intervention markers.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    { "type":"scatter","mode":"lines","name":"Rt upper 95%",
      "x":[0,1,2,3,4,5,6,7,8,9,10,11,12],
      "y":[2.6,2.4,2.1,1.7,1.4,1.2,1.0,0.9,0.85,0.95,1.1,1.2,1.0],
      "line":{"color":"rgba(54,102,255,0)"} },
    { "type":"scatter","mode":"lines","name":"Rt lower 95%",
      "x":[0,1,2,3,4,5,6,7,8,9,10,11,12],
      "y":[2.0,1.8,1.5,1.2,1.0,0.85,0.7,0.6,0.55,0.65,0.8,0.85,0.7],
      "fill":"tonexty","fillcolor":"rgba(54,102,255,0.2)","line":{"color":"rgba(54,102,255,0)"} },
    { "type":"scatter","mode":"lines","name":"Rt",
      "x":[0,1,2,3,4,5,6,7,8,9,10,11,12],
      "y":[2.3,2.1,1.8,1.5,1.2,1.0,0.85,0.75,0.7,0.8,0.95,1.05,0.85],
      "line":{"color":"#3666ff","width":3} },
    { "type":"scatter","mode":"lines","name":"Rt = 1",
      "x":[0,12],"y":[1,1],"line":{"color":"#dc2626","dash":"dash"} }
  ],
  "layout":{
    "title":"Effective reproduction number Rt",
    "xaxis":{"title":"Weeks since outbreak"},
    "yaxis":{"title":"Rt","range":[0,3]},
    "annotations":[
      {"x":3,"y":2.5,"text":"School closure","showarrow":true,"arrowhead":3,"ax":40,"ay":0},
      {"x":7,"y":1.3,"text":"Mask mandate","showarrow":true,"arrowhead":3,"ax":40,"ay":0}
    ]
  }
}