Skip to contents

This function scales first and second columns.

Usage

gen_scaled_data(data)

Arguments

data

A tibble that contains embedding components in the first and second columns.

Value

A list of a tibble contains scaled first and second columns, and numeric vectors representing the limits of the original data.

Examples

gen_scaled_data(data = s_curve_noise_umap)
#> $scaled_nldr
#> # A tibble: 75 × 3
#>     UMAP1  UMAP2    ID
#>     <dbl>  <dbl> <int>
#>  1 0.0804 0.320      1
#>  2 0.739  1.00       2
#>  3 0.840  1.08       3
#>  4 0.167  0.0432     4
#>  5 0.263  0.398      6
#>  6 0.838  2.01       7
#>  7 0.734  0.972      8
#>  8 0.627  0.721      9
#>  9 0.810  1.01      11
#> 10 0.903  1.87      12
#> # ℹ 65 more rows
#> 
#> $lim1
#> [1] -3.270358  2.455595
#> 
#> $lim2
#> [1] -5.742540  5.820531
#>