color_palette: Generate a color palette from an image.

Description Usage Arguments Value

View source: R/color_palette.R

Description

Generate a color palette from an image.

Usage

1
2
color_palette(file, length = 10, exclude = c("#FFFFFF", "#000000"),
  normalize = TRUE)

Arguments

file

The path or url to an image file (urls should begin with http(s):// or ftp(s)://).

length

The number of colors to return.

exclude

Colors to exclude from palette. Excludes white and black by default.

normalize

Whether or not to apply image_normalize

Value

A character vector containing a color palette.


niedermansam/marketR documentation built on Nov. 4, 2019, 10:06 p.m.