rlbarter / superheat

An r package for generating beautiful and customizable heatmaps
https://rlbarter.github.io/superheat/
238 stars 29 forks source link

Heatmap plots now alphabetically ordering data when grouped by membership #57

Closed foreignsand closed 3 years ago

foreignsand commented 3 years ago

The following code:

superheat(cob1_phylo_matrix, title="Cytochrome b: Order level variability", legend.height=0.05, legend.width=2,
          heat.pal=c("#C8E2E8", "#86CDCF", "#1F314F"), 
          left.label.text.size=0.75, left.label.size=0.075, bottom.label="none", 
          grid.hline.col="white", grid.hline.size=0.1, 
          grid.vline.col="white", grid.vline.size=0.1, 
          heat.lim = c(50,100), membership.rows=orders_vec_cob, 
          membership.cols=orders_vec_cob, smooth.heat=TRUE)

Produced the following heatmap when I ran it in October:

variability_heat_maps_markup_08.pdf

Now it reorders the grouped data in alphabetical order and produces the following heatmap:

heat_map_new.pdf

The bottom label also now overlaps the heatmap while it didn't in the earlier plot. I'm not sure why this is happening, and am hoping I can do something to force superheat to retain the original clustering order and place the bottom label below the heatmap. Any and all help will be much appreciated.

Many thanks!

foreignsand commented 3 years ago

Replying to my own issue after realizing that it was just that: my issue. I had reinstalled superheat but hadn't installed the development version. Now that I've gone ahead and done that everything is working as expected.

Apologies for the false alarm! :P