Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of legends when using autogenerated simple annotation legends plus customized legends #1224

Open
dspagnolo09 opened this issue Nov 29, 2024 · 0 comments

Comments

@dspagnolo09
Copy link

dspagnolo09 commented Nov 29, 2024

I have a heat map that contains, from top to bottom:

  • anno_barplot with colors referencing a particular attribute
  • simple HeatmapAnnotation
  • simple HeatmapAnnotation
  • Heatmap
  • simple HeatmapAnnotation
  • simple HeatmapAnnotation

For the anno_barplot I define a Legend manually and add to the Heatmap drawing using:
annotation_legend_list = lgd

However this puts the legend at the bottom of the list of legends. Is there any way to easily put it to the top? This way it is closest to the annotation it describes. Perhaps there is a way to extract the existing simple HeatmapAnnotation legends and then I can construct a list to pass to annotation_legend_list? I'd rather not manually define each legend as I'm also hoping to utilize merge_legend=TRUE.

@dspagnolo09 dspagnolo09 changed the title Order of legends when using autogenerated Simpl Order of legends when using autogenerated simple annotation legends plus customized legends Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant