brennanpincardiff / drawProteins

Creating package to draw proteins from Uniprot API
Other
33 stars 17 forks source link

Additional control of legend colours #20

Open janstrauss1 opened 3 years ago

janstrauss1 commented 3 years ago

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

brennanpincardiff commented 3 years ago

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

alptaciroglu commented 3 years ago

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