Learn R Programming

catmaply (version 0.9.4)

discrete_coloring_categorical: Generates the parameters necessary for discrete coloring and colorbar

Description

Generates the parameters necessary for discrete coloring and colorbar

Usage

discrete_coloring_categorical(categories, color_palette, range_min, range_max)

Value

list(colorscale, tickvals, ticktext)

Arguments

categories

categories, for coloring should done

color_palette

the color palette

range_min

max of z range; (default: length(categories))