Get useful transformation for the time variable in patient profiles.
getTimeTrans(
type = c("asinh", "asinh-neg"),
scale = 1,
formatFct = prettyNum,
n = 10
)ggplot2 transformation (see trans_new)
String with transformation type, either:
'asinh': hyperbolic arc-sine (asinh) transformation
'asinh-neg': hyperbolic arc-sine transformation only for the negative values, otherwise linear scale
Numeric vector of length 1 (1 by default)
with size of the linear region around 0, only used if in case
type is: 'asinh'.
If specified, the time variable is first scaled with: x/scale,
then transformed.
function formatting the time axis breaks,
(prettyNum by default),
see format parameter of the trans_new.
Integer of length 1 with number of breaks, 10 by default.
Pieter-Jan Stiers, Laure Cougnaud