Skip to contents

plt_tize() creates a color palette from a supported image file.

Usage

plt_tize(path, cluster_count, seed, sort_type = "weight")

Arguments

path

A path to a supported image file.

cluster_count

The number of clusters for k-means clustering.

seed

An integer to specify the seed for the random number generator.

sort_type

A character vector, one of "weight" (the default), "red", "green", or "blue".

Value

A character vector of hexadecimal colors.