Learn R Programming

qualpalr (version 0.4.4)

print.qualpal: Print qualpal palette

Description

Print the result from a call to qualpal.

Usage

# S3 method for qualpal
print(x, colorspace = c("HSL", "DIN99d", "RGB"), digits = 2, ...)

Value

Prints the colors as a matrix in the specified color space as well as a distance matrix of the color differences. Invisibly returns x.

Arguments

x

An object of class "qualpal".

colorspace

Color space to print colors in.

digits

Number of significant digits for the output. (See print.default.) Setting it to NULL uses getOption("digits").

...

Arguments to pass to print.default.

Examples

Run this code
f <- qualpal(3)
print(f, colorspace = "DIN99d", digits = 3)

Run the code above in your browser using DataLab