Extract all the bases as a matrix

get_basis_matrix(dt)

Arguments

dt

a data object collected by the projection pursuit guided tour optimisation in the tourr package

Value

a matrix that flattens each basis into a row

See also

Examples

head(get_basis_matrix(holes_1d_better), 5)
#> V1 V2 V3 V4 V5 #> [1,] 0.34100587 -0.1129065 -0.14519958 0.0357833 0.9211969 #> [2,] 0.47021229 0.2323680 0.49786511 0.3133040 0.6155294 #> [3,] -0.07081708 -0.3776694 -0.10317006 0.3478981 0.8489250 #> [4,] 0.23230438 -0.2897560 0.18500055 0.5184984 0.7476699 #> [5,] -0.10216793 0.4893826 -0.08432954 0.1108271 0.8547937