selkamand / ggoncoplot

Easily Create Interactive Oncoplots
https://selkamand.github.io/ggoncoplot/
Other
3 stars 0 forks source link

Consistent colours #13

Closed selkamand closed 2 years ago

selkamand commented 2 years ago

Added palette argument: a named vector mapping all possible mutation types (vector names) to colours (vector values).

If not supplied ggoncoplot will check whether values of MutationType are either valid SO or MAF variant classification terms. If so, will use pre-made colour schemes for each of these ontologies from the mutationtypes package.

If mutation type terms are not described using these ontologies, a 12 colour RColourBrewer palette will be used, but the user warned to make a custom mapping to force a consistent colour schemes between plots

selkamand commented 2 years ago

Consistent colour schemes supported:

1