rlbarter / superheat

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

barplot: ylim option in 'yt' or xlim option in 'yr' #13

Closed grepinsight closed 7 years ago

grepinsight commented 7 years ago

Hi,

Thank you for making this package! It's a breath of fresh air to create heatmaps with this package.

The issue I have is when I try to create three separate heatmaps with additional bar plots in "yt" in each heatmap, the barplot's ylim are inconsistent across the plots, as you can see below.

Is there anyway to provide a fixed ylim values for 'yt' for 'yr'?

rlbarter commented 7 years ago

Ignore my accidental closing!

I'll implement this ASAP. It was one of those things that I assumed you could already do, but I never actually implemented it! Well let you know when I have done so.

rlbarter commented 7 years ago

I've added arguments yt.lim and yr.lim which take a vector of length 2, where the first entry is the minimum value for the range and the second entry is the maximum value for the range. See the updated vignette: https://rlbarter.github.io/superheat/adjacent-plots.html#limits Let me know if you run into any issues!

rlbarter commented 7 years ago

You will need to re-install the development version

devtools::install_github("rlbarter/superheat")

grepinsight commented 7 years ago

@rlbarter Thank you so much for the quick response!! superheat is really powerful.

rlbarter commented 7 years ago

No problem - I'm glad it's useful!