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
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