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

pal.csf

Show a colormap with a Campbell-Robson Contrast Sensitivity Chart


Description

In a contrast sensitivity figure as drawn by this function, the spatial frequency increases from left to right and the contrast decreases from bottom to top. The bars in the figure appear taller in the middle of the image than at the edges, creating an upside-down "U" shape, which is the "contrast sensitivity function". Your perception of this curve depends on the viewing distance.

Usage

pal.csf(pal, n = 150, main = "")

Arguments

pal

A continuous colormap function

n

The number of colors to display for palette functions.

main

Main title.

Details

What to look for:

1. Are the vertical bands visible across the full vertical axis?

2. Do the vertical bands blur together?

Value

None

Author(s)

Kevin Wright

References

Izumi Ohzawa. Make Your Own Campbell-Robson Contrast Sensitivity Chart. http://ohzawa-lab.bpe.es.osaka-u.ac.jp/ohzawa-lab/izumi/CSF/A_JG_RobsonCSFchart.html

Campbell, F. W. and Robson, J. G. (1968). Application of Fourier analysis to the visibility of gratings. Journal of Physiology, 197: 551-566.

Examples

pal.csf(brewer.greys) # Classic example from psychology
pal.csf(parula)

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.