R code or ggplot object to generate high quality heatmap externally

Hello,

I have generated maaslin2 output file including heatmap, however, the quality of heatmap figure is poor. I need to regenerate heatmap externally with high resolution for publication purpose. I checked visualization source code but I am unable to run that code externally.

Could you please guide me on how to use maaslin2 table to produce high quality heatmap?

Many thanks in advance!

Hi @mars

I would take a look at the source code below for an idea on how the heat map is generated.

However, the pdf version of the heatmap shouldn’t suffer from quality issues since its a vector file that you could then export to any DPI/resolution that you need.

Thanks,
Jacob Nearing