plot_tiles: Diagnostic Map

View source: R/plot_tiles.R

plot_tilesR Documentation

Diagnostic Map

Description

Produces a diagnostic map for a given color scheme.

Usage

plot_tiles(x, n = 512)

Arguments

x

A character vector of colors.

n

An integer specifying the size of the grid (defaults to 512).

Author(s)

N. Frerebeau

See Also

Other diagnostic tools: compare(), convert(), plot.color_scheme(), plot_map(), plot_scheme_colourblind(), plot_scheme()

Examples

plot(colour("bright")(7))
plot(colour("smooth rainbow")(256))

## Plot colour schemes
plot_scheme(colour("bright")(7))
plot_scheme(colour("sunset")(11))
plot_scheme(colour("YlOrBr")(9))
plot_scheme(colour("discrete rainbow")(14))

## Plot diagnostic maps
plot_map(colour("bright")(7))
plot_map(colour("sunset")(11))
plot_map(colour("YlOrBr")(9))
plot_map(colour("discrete rainbow")(14))

## Plot diagnostic images
plot_tiles(colour("discrete rainbow")(14), n = 256)
plot_tiles(colour("discrete rainbow")(23), n = 256)
plot_tiles(colour("smooth rainbow")(256), n = 256)

tesselle/khroma documentation built on Jan. 15, 2024, 9:15 p.m.