Skip to content

Instantly share code, notes, and snippets.

View FMKerckhof's full-sized avatar
🐳

Frederiek - Maarten Kerckhof FMKerckhof

🐳
View GitHub Profile
@FMKerckhof
FMKerckhof / reprex.qmd
Created January 31, 2025 16:19
Reprex for using brand.yml via frontmatter that leads to quarto crash
---
title: "Reprex test"
author: "FM Kerckhof"
date: "`r Sys.Date()`"
format:
html:
embed-resources: true
smooth-scroll: true
theme:
light: haddock
@FMKerckhof
FMKerckhof / heatmap3.R
Last active October 25, 2017 17:11
Quick change to heatmap.2
heatmap.3 <- function (x, Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE,
distfun = dist, hclustfun = hclust, dendrogram = c("both",
"row", "column", "none"), reorderfun = function(d, w) reorder(d,
w), symm = FALSE, scale = c("none", "row", "column"),
na.rm = TRUE, revC = identical(Colv, "Rowv"), add.expr, breaks,
symbreaks = any(x < 0, na.rm = TRUE) || scale != "none",
col = "heat.colors", colsep, rowsep, sepcolor = "white",
sepwidth = c(0.05, 0.05), cellnote, notecex = 1, notecol = "cyan",
na.color = par("bg"), trace = c("column", "row", "both",
"none"), tracecol = "cyan", hline = median(breaks), vline = median(breaks),