Skip to contents

Mixes the colors of two clusters proportionally.

Usage

mix_rgb(df, colors, cell, color_by)

Arguments

df

data.frame of cells with clusters in `color_by` and assigned hex bin in `hexbin`.

colors

colors to be mixed.

cell

Which hexbin to mix colors in.

color_by

Column name where the clusters/groups are stored in `df`.

Value

Mixed color as hex code.