{
  "name": "Scaling, colour, row-name and row-grouping settings in pheatmap and ComplexHeatmap",
  "description": "Compiled from the pheatmap reference manual on CRAN and the ComplexHeatmap Complete Reference chapter 'A single heatmap', both read on 2026-11-16. Each row names a heatmap task and gives the argument or behaviour in each package, so a figure can be reproduced in either package.",
  "page": "https://casrai.org/guides/gene-expression-heatmap",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T23:25:34Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Task",
      "unit": "",
      "description": ""
    },
    {
      "name": "pheatmap (CRAN)",
      "unit": "",
      "description": ""
    },
    {
      "name": "ComplexHeatmap (Bioconductor)",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Task": "Scale rows or columns",
      "pheatmap (CRAN)": "scale argument: \"row\", \"column\" or \"none\" (default \"none\")",
      "ComplexHeatmap (Bioconductor)": "No scale argument; scale the matrix yourself before plotting"
    },
    {
      "Task": "Colours",
      "pheatmap (CRAN)": "color vector; default is a 100-step gradient from the reversed 7-class RdYlBu palette",
      "ComplexHeatmap (Bioconductor)": "Default blue-white-red mapping; colorRamp2() recommended"
    },
    {
      "Task": "Hide gene names",
      "pheatmap (CRAN)": "show_rownames=FALSE",
      "ComplexHeatmap (Bioconductor)": "show_row_names=FALSE"
    },
    {
      "Task": "Split rows into groups",
      "pheatmap (CRAN)": "cutree_rows = number of row clusters cut from the dendrogram",
      "ComplexHeatmap (Bioconductor)": "row_km = k for k-means split; row_split with a categorical vector, data frame or number"
    },
    {
      "Task": "Row clustering method",
      "pheatmap (CRAN)": "clustering_method default \"complete\", same values as hclust",
      "ComplexHeatmap (Bioconductor)": "clustering_method_rows accepts hclust methods"
    }
  ],
  "sources": [
    {
      "title": "pheatmap reference manual",
      "url": "https://search.r-project.org/CRAN/refmans/pheatmap/html/pheatmap.html",
      "accessed": "2026-11-16"
    },
    {
      "title": "ComplexHeatmap Complete Reference: A single heatmap",
      "url": "https://jokergoo.github.io/ComplexHeatmap-reference/book/a-single-heatmap.html",
      "accessed": "2026-11-16"
    }
  ]
}