ColorRamp palette extrapolating Set1 palette of RColorBrewer package. The original Set1 palette is
sampled for 9 colours. This function can have the number of required colours
as input parameter; if this does not happen a function is returned.
distinct_palette_few(n = NULL)
| n | The number of required colours. By default this is NULL. |
|---|
Either a function that applied to a number returns the required colours, or the actual sampling function.
Other Plotting functions:
distinct_palette_many(),
gradient_palette(),
plot_DET_index(),
plot_clusters(),
plot_dendrogram(),
plot_drivers_clonality(),
plot_drivers_graph(),
plot_drivers_occurrence(),
plot_jackknife_cluster_stability(),
plot_jackknife_coclustering(),
plot_jackknife_trajectories_stability(),
plot_patient_CCF_histogram(),
plot_patient_data(),
plot_patient_mutation_burden(),
plot_patient_oncoprint(),
plot_patient_trees_scores()
distinct_palette_few(2)#> [1] "#E41A1C" "#999999"