interpolate_colours: Interpolate colour palette to render more colours within the...

Description Usage Arguments Examples

View source: R/interpolate_colours.R

Description

This function extend a colour palette by interpolation.

Usage

1
interpolate_colours(inp_col, n_col)

Arguments

inp_col

Colours input as names or hex code

n_col

Number of output colours

Examples

1
2
3
4
set.seed(1234)
inp_col <- extract_colours("http://www.scoutlondon.com/blog/wp-content/uploads/2012/05/Pulp-Fiction.jpg")
out_col <- interpolate_colours(inp_col, n_col = 20)
display_colours(out_col)

woobe/rPlotter documentation built on May 4, 2019, 9:48 a.m.