?png indicates that lwd parameter of less than 1 will be treated as 1, and that 1 pixel is also a minimum width.
Large heatmaps (many cells) look better with lwd < 1, so this is an annoying issue.
png device is default for R markdown html output, on Windows at least, it seems.
The solution is to use another device, such as CairoPNG or ragg_png.
It seems the default device cannot be changed for rmd notebook inline chunk output.
I should note solutions/workarounds somewhere in the comp_heatmap documentation.
knitr::opts_chunk$set(dev = "ragg_png") is a good fix for rmd documents.
The default device for rstudio can also be changed in global options
?png indicates that lwd parameter of less than 1 will be treated as 1, and that 1 pixel is also a minimum width. Large heatmaps (many cells) look better with lwd < 1, so this is an annoying issue.
png device is default for R markdown html output, on Windows at least, it seems. The solution is to use another device, such as CairoPNG or ragg_png.
It seems the default device cannot be changed for rmd notebook inline chunk output.
I should note solutions/workarounds somewhere in the comp_heatmap documentation.
knitr::opts_chunk$set(dev = "ragg_png")
is a good fix for rmd documents.