ropensci / iheatmapr

Complex, interactive heatmaps in R
https://docs.ropensci.org/iheatmapr
Other
267 stars 35 forks source link

Add control of showing / hiding colorbars for add_row_annotation and add_col_annotation #50

Closed fboehm closed 4 years ago

fboehm commented 4 years ago

I've added an input parameter, show_colorbar = TRUE, to both add_row_annotation and add_col_annotation. Its default value is set to TRUE, so that it is backwards compatible. Setting it to FALSE in a call to either add_row_annotation or add_col_annotation passes the value FALSE to add_row_signal (or add_col_signal) for its argument show_colorbar, which was formerly set to be always TRUE in the code for add_row_annotation. This might aid some users.