david-barnett / microViz

R package for microbiome data visualization and statistics. Uses phyloseq, vegan and the tidyverse. Docker image available.
https://david-barnett.github.io/microViz/
GNU General Public License v3.0
99 stars 10 forks source link

heat_grid default lwd of 0.5 not respected on png device #32

Closed david-barnett closed 1 year ago

david-barnett commented 3 years ago

?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.