display_image: Display color image

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convenience wrapper to create a raster image of the image you wish to extract the palette from.

Usage

1

Arguments

image

Matrix The image from which the palette will be extracted from. Should be a 3 (or more) dimensional matrix. The output of functions such as readJPG() are suitable as image.

Value

A raster image in the plot window.

Examples

1
2
img <- jpeg::readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
display_image(img)

joelcarlson/RImagePalette documentation built on Oct. 26, 2021, 3:34 a.m.