Description Usage Arguments Details Value References See Also Examples
Functions that wrap the main litmus-fitting function, with predefined colors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | gold.litmus.fit (x, ..., reverse=FALSE, equalize=0.85)
blue.litmus.fit (x, ..., reverse=FALSE, equalize=0.85)
green.litmus.fit (x, ..., reverse=FALSE, equalize=0.85)
heat.litmus.fit (x, ..., reverse=FALSE, equalize=0.85)
blue.litmus.fit.hcv (x, ..., reverse=FALSE, equalize=0.85)
green.litmus.fit.hcv (x, ..., reverse=FALSE, equalize=0.85)
blue.litmus.fit.flow (x, ..., reverse=FALSE, equalize=0.85)
green.litmus.fit.flow (x, ..., reverse=FALSE, equalize=0.85)
gold.litmus.fit.lum (x, ..., reverse=FALSE, equalize=0.85)
blue.litmus.fit.lum (x, ..., reverse=FALSE, equalize=0.85)
green.litmus.fit.lum (x, ..., reverse=FALSE, equalize=0.85)
purple.litmus.fit.lum (x, ..., reverse=FALSE, equalize=0.85)
heat.litmus.fit.lum (x, ..., reverse=FALSE, equalize=0.85)
rainbow.litmus.fit (x, ..., c=42.5, l=75, start=65, end=315,
equalize=0.85)
rainbow.litmus.fit.2 (x, ..., c=50, l=70, start=0, end=360,
equalize=0.85)
glass.rainbow.fit (x, alpha=0.3, ..., c=42.5, l=62.5, start=42.5, end=260,
equalize=0.85)
hot.and.cold.fit (x, ..., t=0, symetric=TRUE, hot.hue=35, cold.hue=255,
equalize=0.85)
|
x |
A numeric vector. |
reverse |
Logical, reverse the order of the colors. |
equalize |
Numeric, between zero and one, refer to details, for litmus.fit. |
c, l, start, end |
Same as colorspace::rainbow_hcl. |
alpha |
A numeric vector giving the alpha component. If it has two or more values, then each alpha value is assigned to each knot. |
t |
Numeric of length one or two, giving the transition points between "hot" and cold". |
symetric |
Logical, if true, the hot and cold sides should be relatively symetrical. |
hot.hue, cold.hue |
Numerics, the hot and cold hues. |
... |
Ignored. |
Most of these functions wrap the litmus.fit function.
The rainbow.litmus.fit and rainbow.litmus.fit.2 functions are based on colorspace::rainbow_hcl.
All functions return litmus objects.
(Except for hot.and.cold.fit, which returns a mlitmus object).
Refer to the vignette for an overview, references and better examples.
Main Plotting Functions
Functional Versions
Which take a function as their main argument.
Global Options
litmus, mlitmus, litmus.fit
Predefined Litmus Objects
1 2 3 4 5 6 7 8 9 10 11 12 13 | x <- rnorm (30)
colf1 <- blue.litmus.fit (x)
colf2 <- hot.and.cold.fit (x)
p0 <- par (mfrow = c (2, 1) )
plot (colf1)
plot (colf2)
par (p0)
u <- seq (min (x), max (x),, 5)
colf1 (u)
colf2 (u)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.