# Print qualpal palette

R · 2.1.0

[Source](<https://github.com/jolars/qualpalr/blob/7fd73fd3b3ee455008662f41db71da21244bc5d7/R/qualpal.R>)

```r
print.qualpal(x, colorspace = c("HSL", "DIN99d", "RGB"), digits = 2, ...)
```

<a id="print-qualpal-palette"></a>

## Print qualpal palette

Print the result from a call to [`qualpal`](<qualpal>).


<a id="usage"></a>

## Usage

```r
print.qualpal(x, colorspace = c("HSL", "DIN99d", "RGB"), digits = 2, ...)
```

<a id="arguments"></a>

## 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](<https://rdrr.io/r/base/print.default.html>).) Setting it to `NULL` uses
[`getOption`](<https://rdrr.io/r/base/options.html>)`("digits")`.

`...`

Arguments to pass to [`print.default`](<https://rdrr.io/r/base/print.default.html>).

<a id="value"></a>

## 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.


<a id="examples"></a>

## Examples

```r
f <- qualpal(3)
print(f, colorspace = "DIN99d", digits = 3)
```

```text
---------------------------------------- 
Colors in the DIN99d color space 

     [,1]   [,2]   [,3]
[1,] 59.3  31.62   7.44
[2,] 82.5  -3.77  32.19
[3,] 69.3 -17.89 -17.90

 ---------------------------------------- 
DIN99d color difference distance matrix 

     1    2
2 22.8     
3 25.3 24.4
```
