pal.test: Show a colormap with multiple images

View source: R/tools.R

pal.testR Documentation

Show a colormap with multiple images

Description

1. Z-curve

Usage

pal.test(pal, main = substitute(pal))

Arguments

pal

A palette function or a vector of colors.

main

Title to display at the top of the test image

Details

2. Contrast Sensitivity Function.

3. Frequency ramp. See: http://inversed.ru/Blog_2.htm Are the vertical bands visible across the full vertical axis?

4. 5. Two images of the 'volcano' elevation data in R using forward/reverse colors. Try to find the highest point on the volcano peak. Many palettes with dark colors at one end of the palette hide the peak (e.g. viridis). Also try to decide if the upperleft and upperright corners are the same color.

6. Luminosity in red, green, blue, and grey.

Value

None.

Author(s)

Kevin Wright

References

# See links above.

Examples

pal.test(parula)
pal.test(viridis) # dark colors are poor
pal.test(coolwarm)


pals documentation built on Aug. 23, 2023, 9:07 a.m.