kappa_trans | R Documentation |
Functions to linearize the BRAID interaction parameter kappa, which ordinarily
ranges from -2 to infinity. kappa_trans
produces a scales
transform
object which can be used in ggplot2
continuous scale object.
scale_x_kappa
and scale_y_kappa
are wrappers for scale_x_continuous
and scale_y_continuous
which set the trans
or transform
parameter to
kappa_trans()
.
kappa_trans()
scale_x_kappa(...)
scale_y_kappa(...)
... |
Additional parameter to be passed to |
For kappa_trans
a scales
transform object. For scale_*_kappa
,
a continuous position scale layer for a ggplot object.
transform <- kappa_trans()
transform$transform(c(-1.96, 100))
transform$inverse(c(-1, 1))
data <- merckValues_stable
ggplot(data,aes(x=kappa))+
geom_density()+
scale_x_kappa("BRAID kappa")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.