hms-dbmi / UpSetR

An R implementation of the UpSet set visualization technique published by Lex, Gehlenborg, et al..
https://cran.rstudio.com/web/packages/UpSetR
Other
744 stars 148 forks source link

Adjust legend #254

Open mauritsunkel opened 9 months ago

mauritsunkel commented 9 months ago

Hi,

I am coloring some interactions by a custom 'grouping', I would like the created legend for this to be unique for each group instead of each interaction, as there now are duplicates.

Not giving a query.name or trying to nullify it doesn't work, as a semi-random query name is generated for the legend. Adjusting the legend after plot creation doesn't seem to work as I believe the legend order is generated by interaction order during plotting and not query list order.

Any advice on how I could go about this?

Best, Maurits

Mahammad-123 commented 1 month ago

Use the scale_color_manual() function