Title: Vincent Van Gogh Colour Palette Generator
Version: 0.1.2
Description: Provides 'ggplot2'-compatible colour palettes inspired by Vincent van Gogh's paintings. Each palette contains five colours, manually selected by hexadecimal values.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.2
Imports: ggplot2, rlang, methods
Suggests: scales, knitr, rmarkdown, colorspace, jsonlite
VignetteBuilder: knitr
URL: https://github.com/cherylisabella/vangogh
BugReports: https://github.com/cherylisabella/vangogh/issues
NeedsCompilation: no
Packaged: 2025-08-21 13:49:52 UTC; Isabella
Author: Cheryl Isabella [aut, cre]
Maintainer: Cheryl Isabella <cheryl.academic@gmail.com>
Repository: CRAN
Date/Publication: 2025-08-21 14:20:02 UTC

vangogh

Description

list of palettes generated from Vincent van Gogh's paintings

Details

list of palettes generated from Vincent van Gogh's paintings

Author(s)

Maintainer: Cheryl Isabella cheryl.academic@gmail.com

See Also

Useful links:


Check palette accessibility with colorblind simulations

Description

Check palette accessibility with colorblind simulations

Usage

check_palette(name, type = "discrete", n = NULL)

Arguments

name

Palette name (character)

type

Either "discrete" or "continuous" (default "discrete")

n

Number of colors for continuous palettes

Examples

## Not run: 
vangogh::check_palette("StarryNight")

## End(Not run)

Compare multiple Van Gogh palettes in a facet-style visualization

Description

Compare multiple Van Gogh palettes in a facet-style visualization

Usage

compare_palettes(
  palettes,
  show_hex = TRUE,
  colorblind = FALSE,
  type = "discrete",
  n = NULL
)

Arguments

palettes

Character vector of palette names

show_hex

Logical: display hex codes

colorblind

Logical: simulate colorblind view

type

"discrete" or "continuous"

n

Number of colors for continuous palettes


Generate a colorblind-safe Van Gogh palette

Description

Returns the original palette (colorblind adjustment removed).

Usage

safe_vangogh_palette(name, type = "discrete", n = NULL, colorblind = FALSE)

Arguments

name

Palette name

type

Either "discrete" or "continuous"

n

Number of colors for continuous palettes

colorblind

Logical, kept for compatibility


Scale color with Van Gogh palettes

Description

Scale color with Van Gogh palettes

Usage

scale_color_vangogh(name, discrete = TRUE, colorblind = FALSE, ...)

scale_colour_vangogh(name, discrete = TRUE, colorblind = FALSE, ...)

Arguments

name

Palette name

discrete

Logical: use discrete scale

colorblind

Logical: use colorblind-safe colors

...

Additional arguments to ggplot2 scale function


Scale fill with Van Gogh palettes

Description

Scale fill with Van Gogh palettes

Usage

scale_fill_vangogh(name, discrete = TRUE, colorblind = FALSE, ...)

Arguments

name

Palette name

discrete

Logical: use discrete scale

colorblind

Logical: use colorblind-safe colors

...

Additional arguments to ggplot2 scale function


Theme inspired by Van Gogh (variants)

Description

Theme inspired by Van Gogh (variants)

Usage

theme_vangogh(
  base_size = 12,
  base_family = "",
  variant = c("classic", "light", "dark", "sketch")
)

Arguments

base_size

numeric base font size

base_family

font family

variant

one of "classic", "light", "dark", "sketch"


Return all Van Gogh palettes as a tidy data frame

Description

Return all Van Gogh palettes as a tidy data frame

Usage

vangogh_colors(
  n = NULL,
  type = "discrete",
  colorblind = FALSE,
  add_metadata = FALSE
)

Arguments

n

Number of colors per palette

type

"discrete" or "continuous"

colorblind

Logical (compatibility)

add_metadata

Logical: compute HCL metadata if colorspace available


Export palettes to JSON or CSV

Description

Export palettes to JSON or CSV

Usage

vangogh_export(
  file,
  format = c("json", "csv"),
  n = NULL,
  type = "discrete",
  add_metadata = FALSE
)

Arguments

file

File path including filename

format

"json" or "csv"

n

Number of colors (for continuous palettes)

type

"discrete" or "continuous"

add_metadata

Logical: include HCL metadata if available


Interpolate a Van Gogh palette

Description

Interpolate a Van Gogh palette

Usage

vangogh_interpolate(palette, n)

Arguments

palette

Vector of hex colors

n

Number of colors desired


A Van Gogh color palette generator.

Description

These are some color palettes from a selection of Vincent van Gogh's paintings.

Usage

vangogh_palette(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. Choices are: StarryNight, StarryRhone, SelfPortrait, CafeTerrace, Eglise, Irises, SunflowersMunich, SunflowersLondon, Rest ,Bedroom , CafeDeNuit, Chaise, Shoes, Landscape, Cypresses

n

Number of colors desired. All palettes have a standard of 5 colors. If omitted, uses all colors.

type

Either "continuous" or "discrete". Use "continuous" to automatically interpolate between colours. @importFrom graphics rgb rect par image text

Value

A vector of colors.

Examples

vangogh_palette("StarryNight")
vangogh_palette("SelfPortrait")
vangogh_palette("Cypresses")
vangogh_palette("Cypresses", 3)

# If you want a continous paletted based on the colors already found in the preset
# palettes, you can interpolate between existing colours accordingly.
pal <- vangogh_palette(21, name = "StarryRhone", type = "continuous")

Return palette info as a data frame with optional HCL

Description

Return palette info as a data frame with optional HCL

Usage

vangogh_palette_info(colorblind = FALSE, add_metadata = FALSE)

Arguments

colorblind

Logical (compatibility)

add_metadata

Logical: compute HCL hue/chroma/luminance if colorspace is installed


Complete list of palettes:

Description

Use vangogh_palette to construct palettes of desired length.

Usage

vangogh_palettes

Format

An object of class list of length 15.


Suggest a palette based on number of colors

Description

Suggest a palette based on number of colors

Usage

vangogh_suggest(n = 5, type = "discrete")

Arguments

n

Number of colors needed

type

"discrete" or "continuous"


Visualise a Van Gogh palette with optional colorblind simulation

Description

Visualise a Van Gogh palette with optional colorblind simulation

Usage

viz_palette(
  name,
  show_hex = TRUE,
  colorblind = FALSE,
  type = "discrete",
  n = NULL
)

Arguments

name

Palette name

show_hex

Display hex codes (TRUE/FALSE)

colorblind

Show colorblind simulation (TRUE/FALSE)

type

Either "discrete" or "continuous"

n

Number of colors for continuous palettes