gradient_palette: Gradient palette.

View source: R/color_palettes.R

gradient_paletteR Documentation

Gradient palette.

Description

ColorRamp palette extrapolating YlGnBu palette of RColorBrewer package. The original YlGnBu palette is sampled for 9 colours.

Usage

gradient_palette(n = NULL)

Arguments

n

The number of required colours. By default this is NULL.

Value

Either a function that applied to a number returns the required colours, or the actual sampling function.

See Also

Other Plotting functions: distinct_palette_few(), distinct_palette_many(), 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()

Examples

gradient_palette(2)

caravagn/revolver documentation built on May 21, 2022, 5:48 p.m.