Skip to contents

Convert hexadecimal colors to the nearest named R colors.

Usage

hexToCol(hex, method = c("rgb", "hsv"), metric = c("euclidean", "manhattan"))

Arguments

hex

character vector of hexadecimal colors.

method

color space used for matching.

metric

distance metric.

Value

Character vector of named R colors.