Read an image from disk or url and extract dominant colors using kmeans.

image_pal(image_source = "https://www.r-project.org/Rlogo.png")

Arguments

image_source

character file path or url

n

integer number of color centers to extract