cmplx2col | R Documentation |
Converts a complex number (or a vector/array thereof) into a color-string, such that brightness represents the complex amplitude and hue represents the complex phase.
cmplx2col(z, max = NULL, hue = 0, saturation = 1, gamma = 1)
z |
complex number or vector/array of complex numbers |
max |
value of the complex module that corresponds to full brightness; if not given, this is set equal to the maximum complex amplitude in z. |
hue |
hue value of positive reals |
saturation |
saturation value of colors |
gamma |
positive number to adjust the non-linearity of the color scale (1=linear) |
Returns a single color or vector/array of colors
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.