create_palette: Creates color palettes for figures.

View source: R/internal.R

create_paletteR Documentation

Creates color palettes for figures.

Description

Creates color palettes for figures using the the RColorBrewer, or the default color palette I made. The first 8 colors of the palette are from B. Wong's 2011 publication. The additional colors I added and may change as time goes by.

Usage

create_palette(color_count, colors = 'default')

Arguments

color_count

Number of colors to choose for palette.

colors

Name of a color set from the RColorBrewer package or a vector palete of R-accepted colors.

Value

palette

Examples

#create_palette(8, 'Dark2')

schuyler-smith/phylosmith documentation built on Aug. 17, 2024, 10:19 a.m.