drawProteins icon indicating copy to clipboard operation
drawProteins copied to clipboard

Additional control of legend colours

Open janstrauss1 opened this issue 4 years ago • 2 comments

Hi @brennanpincardiff,

By default drawProteins appears to use some sort of rainbow colour scheme which become hard to read when there are more than 5 feature types/categories displayed in the legend.

I think it would be great to have more control of the legend colours for protein features.

Best, Jan

janstrauss1 avatar Sep 16 '20 09:09 janstrauss1

Hi Jan, Yes, the colours are just the default that ggplot2 uses. Do you have particular desires with this? I'll have a play over the next few days. Thanks for your interest. Paul

brennanpincardiff avatar Sep 21 '20 22:09 brennanpincardiff

Hi @brennanpincardiff,

I could have a request for this particular topic. Can the package be added a module to colour same 'domains' (or regions) in a user-chosen colour? e.g. Immunoglobulin domains - red, Kinase domains - blue etc..

Edit: Basically like adding a 'color column' to the dataframe submitted with draw_canvas() function.

p.s. Thanks a bunch for the package. I have been using it very regularly

alptaciroglu avatar Nov 20 '20 14:11 alptaciroglu