Return the colors associated to each type of event in 'x', which should be a
TRONCO compliant dataset - see is.compliant
.
as.colors(x)
A named vector of colors.
data(test_dataset)
as.colors(test_dataset)
#> ins_del missense_point_mutations nonsense_ins_del
#> "khaki" "lightgreen" "cornflowerblue"
#> nonsense_point_mutations Pattern
#> "firebrick1" "slateblue"