Description Usage Arguments Value
View source: R/helper_functions.R
This is a helper function used by gg_coefsplot
to colour
intervals based on where they lie in relation to zero. It returns a
value of 0.0 for intervals centred on zero; values between
0.0 and 1.0 for intervals containing zero away from their centre;
and 1.0 for intervals that exclude zero. This assumes that the intervals
represent symmetrical distributions, which often will not be the case.
1 | nonzeroness(lowers, uppers)
|
lowers |
A vector of lower bounds. |
uppers |
A vector of upper bounds the same length as |
A vector of nonzeroness values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.