Return a data.frame of all available palette metadata, optionally filtered by type.
Arguments
- type
Palette type(s) to filter:
"sequential","diverging","qualitative". Default NULL returns all.- sort
Whether to sort by type, n_color, name. Default: TRUE.
- palettes_dir
Character. Directory holding a palette collection (
sequential/,diverging/,qualitative/subdirectories of JSON files). If NULL, the palettes bundled with the package are used.
Examples
list_palettes()
#> name type n_color colors
#> 1 bcell_atlas2 diverging 5 #D76B55,....
#> 2 clone_age diverging 5 #E8A93F,....
#> 3 clone_memory diverging 5 #76579C,....
#> 4 ppi_transient diverging 5 #DE5360,....
#> 5 walter_white diverging 5 #1991A9,....
#> 6 walter_white3 diverging 5 #B15F63,....
#> 7 gene_red qualitative 2 #000000,....
#> 8 heat_light qualitative 2 #DD6866,....
#> 9 ppi_nonspecific qualitative 2 #9B6DA9,....
#> 10 fargo qualitative 3 #14253A,....
#> 11 three_body qualitative 3 #6495ED,....
#> 12 lipid_budding qualitative 4 #6FA6BF,....
#> 13 ppi_obligate qualitative 4 #626EAE,....
#> 14 lactate_steps qualitative 5 #3973BC,....
#> 15 walter_white2 qualitative 5 #5AB5BF,....
#> 16 tam_pastel qualitative 6 #4FA85F,....
#> 17 bcell_atlas qualitative 7 #D68B49,....
#> 18 cytokine_sensors qualitative 7 #4778A8,....
#> 19 immune_circuit qualitative 8 #C65F68,....
#> 20 cancer_mosaic qualitative 15 #3E6186,....
#> 21 bcell_clusters qualitative 20 #4592C0,....
#> 22 babel qualitative 21 #1688A7,....
#> 23 lipid_budding_blue sequential 5 #D2E7EE,....
#> 24 lipid_budding_indigo sequential 5 #D5DBEE,....
#> 25 lipid_budding_orange sequential 5 #F7D8C8,....
#> 26 lipid_budding_rose sequential 5 #EED4E1,....
#> 27 mitonuclear_blue sequential 6 #EEF4FB,....
#> 28 mitonuclear_orange sequential 6 #F8E7E3,....
#> 29 immune_circuit_green sequential 7 #E1F2E7,....
#> 30 immune_circuit_red sequential 7 #FBE5E3,....
list_palettes(type = "qualitative")
#> name type n_color colors
#> 1 gene_red qualitative 2 #000000,....
#> 2 heat_light qualitative 2 #DD6866,....
#> 3 ppi_nonspecific qualitative 2 #9B6DA9,....
#> 4 fargo qualitative 3 #14253A,....
#> 5 three_body qualitative 3 #6495ED,....
#> 6 lipid_budding qualitative 4 #6FA6BF,....
#> 7 ppi_obligate qualitative 4 #626EAE,....
#> 8 lactate_steps qualitative 5 #3973BC,....
#> 9 walter_white2 qualitative 5 #5AB5BF,....
#> 10 tam_pastel qualitative 6 #4FA85F,....
#> 11 bcell_atlas qualitative 7 #D68B49,....
#> 12 cytokine_sensors qualitative 7 #4778A8,....
#> 13 immune_circuit qualitative 8 #C65F68,....
#> 14 cancer_mosaic qualitative 15 #3E6186,....
#> 15 bcell_clusters qualitative 20 #4592C0,....
#> 16 babel qualitative 21 #1688A7,....
list_palettes(type = c("sequential", "diverging"))
#> name type n_color colors
#> 1 bcell_atlas2 diverging 5 #D76B55,....
#> 2 clone_age diverging 5 #E8A93F,....
#> 3 clone_memory diverging 5 #76579C,....
#> 4 ppi_transient diverging 5 #DE5360,....
#> 5 walter_white diverging 5 #1991A9,....
#> 6 walter_white3 diverging 5 #B15F63,....
#> 7 lipid_budding_blue sequential 5 #D2E7EE,....
#> 8 lipid_budding_indigo sequential 5 #D5DBEE,....
#> 9 lipid_budding_orange sequential 5 #F7D8C8,....
#> 10 lipid_budding_rose sequential 5 #EED4E1,....
#> 11 mitonuclear_blue sequential 6 #EEF4FB,....
#> 12 mitonuclear_orange sequential 6 #F8E7E3,....
#> 13 immune_circuit_green sequential 7 #E1F2E7,....
#> 14 immune_circuit_red sequential 7 #FBE5E3,....
