film_colors: A Film Color Palette Generator

Description Usage Arguments Value Examples

View source: R/film_colors.R

Description

These are a handful of color palettes from movies.

Usage

1
film_colors(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. Choices are: Vertigo

n

Number of colors desired. Unfortunately most palettes now only have 4 or 5 colors. If omitted, uses all colours.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

Value

A vector of colours.

Examples

1
2
3
4
5
6
7
film_colors("Vertigo")

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- film_colors(21, name = "Vertigo", type = "continuous")
image(volcano, col = pal)

Nowosad/filmcolors documentation built on May 7, 2019, 6:19 p.m.