Function which determines which color best represents color groupings (ex: blue/yellow)

The function takes pairs of two colors, finds the 6th in between color using coloRampPalette, and continues doing so until all colors in the group have been included

find_merged_color(group)

Arguments

group

A vector of groups in the data

Value

new_col A vector of colors in the same order as the inputted group vector