
Default cutoff thresholds for shape_category classification
Source: R/shape-metrics.R
janusplot_shape_cutoffs.RdReturns the named list of thresholds used to map the continuous
monotonicity (M) and convexity (C) indices (plus inflection
counts) into a discrete shape_category. Expose so callers can
override individual thresholds or pass a fully custom list to
janusplot() / janusplot_shape_metrics().
Value
A named list with numeric thresholds:
mono_strong|M|threshold for a strictly monotone smooth (default0.9).mono_mod|M|threshold for a curved-but-monotone smooth (default0.5).mono_nonmono|M|below this is considered non-monotone (default0.3).mono_s|M|threshold for labelling an S-shape (default0.5).curv_low|C|below this is considered near-linear curvature (default0.2).curv_mod|C|threshold for a clearly curved monotone (default0.5).curv_strong|C|threshold for a U-shape / inverted-U shape (default0.5).flatrange(fit) / sd(y)below this is calledflat(default0.05).
See also
Other shape-metrics:
janusplot_shape_hierarchy(),
janusplot_shape_metrics()
Examples
janusplot_shape_cutoffs()
#> $mono_strong
#> [1] 0.9
#>
#> $mono_mod
#> [1] 0.5
#>
#> $mono_nonmono
#> [1] 0.3
#>
#> $mono_s
#> [1] 0.5
#>
#> $curv_low
#> [1] 0.2
#>
#> $curv_mod
#> [1] 0.5
#>
#> $curv_strong
#> [1] 0.5
#>
#> $flat
#> [1] 0.05
#>
janusplot_shape_cutoffs(curv_mod = 0.6, flat = 0.02)
#> $mono_strong
#> [1] 0.9
#>
#> $mono_mod
#> [1] 0.5
#>
#> $mono_nonmono
#> [1] 0.3
#>
#> $mono_s
#> [1] 0.5
#>
#> $curv_low
#> [1] 0.2
#>
#> $curv_mod
#> [1] 0.6
#>
#> $curv_strong
#> [1] 0.5
#>
#> $flat
#> [1] 0.02
#>