79778472

Date: 2025-09-29 19:23:09
Score: 1
Natty:
Report link

ComplexHeatmap::draw has a padding paramater: padding of the plot. Elements correspond to bottom, left, top, right paddings.

library(ComplexHeatmap)
set.seed(1)
m <- matrix(sample(c(0,1), replace=T, size=20*8), nrow=20) |> 
  `colnames<-`(rep("pneumonoultramicroscopicsilicovolcanoconiosis", 8)) |> 
  make_comb_mat()
ComplexHeatmap::draw(UpSet(t(m)), padding = unit(c(30, 2, 2, 2), "mm"))

res


Note: For the next time, please provide a How to make a great r reproducible example

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: Tim G