Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pal.test

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

Color Palettes, Colormaps, and Tools to Evaluate Them

v1.7
GPL-3
Authors
Kevin Wright [aut, cre] (<https://orcid.org/0000-0002-0617-8673>)
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.