Usage
shading_hcl(observed, residuals = NULL, expected = NULL, df = NULL,
h = NULL, c = NULL, l = NULL, interpolate = c(2, 4), lty = 1,
p.value = NULL, level = 0.95, ...)shading_hsv(observed, residuals = NULL, expected = NULL, df = NULL,
h = c(2/3, 0), s = c(1, 0), v = c(1, 0.5),
interpolate = c(2, 4), lty = 1, p.value = NULL, level = 0.95, ...)
shading_max(observed = NULL, residuals = NULL, expected = NULL, df = NULL,
h = NULL, c = NULL, l = NULL, lty = 1, level = c(0.9, 0.99), n = 1000, ...)
shading_Friendly(observed = NULL, residuals = NULL, expected = NULL, df = NULL,
h = c(2/3, 0), lty = 1:2, interpolate = c(2, 4), ...)
shading_binary(observed = NULL, residuals = NULL, expected = NULL, df = NULL,
col = hcl(c(260, 0), 50, 70))
Arguments
observed
contingecy table of observed values
residuals
contingecy table of residuals
expected
contingecy table of expected values
df
degrees of freedom of the associated independence model.
h
hue value in the HCL or HSV color description, has to be
in [0, 360] for HCL and in [0, 1] for HSV colors. The default is
to use blue and red for positive and negative residuals respectively.
In the HCL specification it is c(260, 0)
c
chroma value in the HCL color description. Defaults to c(100, 20)
for significant and non-significant results respectively.
l
luminance value in the HCL color description. Defaults to c(90, 50)
for small and large residuals respectively.
s
saturation value in the HSV color description. Defaults to c(1, 0)
for large and small residuals respectively.
v
saturation value in the HSV color description. Defaults to c(1, 0.5)
for significant and non-significant results respectively.
interpolate
a specification for mapping the absolute size of the residuals to
a value in [0, 1]. This can be either a function or a numeric vector. In the latter
case, a step function with steps of equal size going from 0 to 1 is used.
lty
a vector of two line types for positive and negative residuals respectively.
Recycled if necessary.
p.value
the $p$ value associated with the independence model. By default,
this is computed from a Chi-squared distribution with df
degrees of freedom.
level
confidence level of the test used. If p.value
is smaller than
1 - level
, bright colors are used, otherwise dark colors are employed. For
shading_max
a vector of levels can be supplied. The corresponding criti
n
number of permutations used in the call to coindep_test
.
col
a vector of two colors for positive and negative residuals respectively.
...
Other arguments passed to hcl
or hsv
, respectively.