Skip to content
Plotly templates

Volcano Plot (RNA-seq)

Differential expression — log2 fold-change vs −log10 p-value with thresholds.

Template previewPlotly
Rendering…

Make it your own.

{
  "data":[{
    "type":"scatter","mode":"markers",
    "x":[-3.2,-2.1,-1.4,-1.1,-0.6,-0.3,0.2,0.4,0.9,1.2,1.7,2.4,3.1,3.8,-2.8,2.6],
    "y":[6.2,5.0,3.2,2.1,1.4,0.8,0.7,1.0,1.8,3.0,4.1,5.6,6.8,7.5,6.0,6.4],
    "text":["GENE_A","GENE_B","GENE_C","GENE_D","GENE_E","GENE_F","GENE_G","GENE_H","GENE_I","GENE_J","GENE_K","GENE_L","GENE_M","GENE_N","GENE_O","GENE_P"],
    "marker":{
      "size":9,
      "color":[-3.2,-2.1,-1.4,-1.1,-0.6,-0.3,0.2,0.4,0.9,1.2,1.7,2.4,3.1,3.8,-2.8,2.6],
      "colorscale":[[0,"#1f47f5"],[0.5,"#94a3b8"],[1,"#dc2626"]],
      "showscale":false}
  }],
  "layout":{
    "title":"Volcano plot",
    "xaxis":{"title":"log₂ fold-change"},
    "yaxis":{"title":"−log₁₀ p-value"},
    "shapes":[
      {"type":"line","x0":-1,"x1":-1,"y0":0,"y1":8,"line":{"color":"#94a3b8","dash":"dash"}},
      {"type":"line","x0":1,"x1":1,"y0":0,"y1":8,"line":{"color":"#94a3b8","dash":"dash"}},
      {"type":"line","x0":-4,"x1":4,"y0":1.3,"y1":1.3,"line":{"color":"#94a3b8","dash":"dash"}}
    ]
  }
}