Generate Axes for Projection
Usage
gen_axes(
proj,
limits = 1,
axis_pos_x = NULL,
axis_pos_y = NULL,
axis_labels,
threshold = 0
)
Examples
projection_df <- cbind(
c(-0.17353,-0.02906,0.19857,0.00037,0.00131,-0.05019,0.03371),
c(-0.10551,0.14829,-0.02063,0.02658,-0.03150,0.19698,0.00044))
gen_axes(proj = projection_df, axis_labels = paste0("x", 1:7))
#> $axes
#> x1 y1 x2 y2 distance
#> x1 -0.6666667 -0.6666667 -0.6955883 -0.6842517 0.033848117
#> x2 -0.6666667 -0.6666667 -0.6715100 -0.6419517 0.025185097
#> x3 -0.6666667 -0.6666667 -0.6335717 -0.6701050 0.033273130
#> x4 -0.6666667 -0.6666667 -0.6666050 -0.6622367 0.004430429
#> x5 -0.6666667 -0.6666667 -0.6664483 -0.6719167 0.005254538
#> x6 -0.6666667 -0.6666667 -0.6750317 -0.6338367 0.033878933
#> x7 -0.6666667 -0.6666667 -0.6610483 -0.6665933 0.005618812
#>
#> $circle
#> c1 c2
#> 1 -0.5000000 -0.6666667
#> 2 -0.5013683 -0.6453538
#> 3 -0.5054509 -0.6243909
#> 4 -0.5121805 -0.6041222
#> 5 -0.5214469 -0.5848804
#> 6 -0.5330977 -0.5669816
#> 7 -0.5469418 -0.5507196
#> 8 -0.5627517 -0.5363614
#> 9 -0.5802679 -0.5241429
#> 10 -0.5992028 -0.5142646
#> 11 -0.6192454 -0.5068887
#> 12 -0.6400667 -0.5021364
#> 13 -0.6613247 -0.5000856
#> 14 -0.6826705 -0.5007701
#> 15 -0.7037535 -0.5041787
#> 16 -0.7242275 -0.5102553
#> 17 -0.7437564 -0.5189001
#> 18 -0.7620194 -0.5299713
#> 19 -0.7787168 -0.5432870
#> 20 -0.7935743 -0.5586286
#> 21 -0.8063480 -0.5757442
#> 22 -0.8168281 -0.5943527
#> 23 -0.8248426 -0.6141486
#> 24 -0.8302599 -0.6348069
#> 25 -0.8329909 -0.6559883
#> 26 -0.8329909 -0.6773450
#> 27 -0.8302599 -0.6985264
#> 28 -0.8248426 -0.7191847
#> 29 -0.8168281 -0.7389806
#> 30 -0.8063480 -0.7575892
#> 31 -0.7935743 -0.7747047
#> 32 -0.7787168 -0.7900463
#> 33 -0.7620194 -0.8033620
#> 34 -0.7437564 -0.8144332
#> 35 -0.7242275 -0.8230781
#> 36 -0.7037535 -0.8291547
#> 37 -0.6826705 -0.8325632
#> 38 -0.6613247 -0.8332477
#> 39 -0.6400667 -0.8311970
#> 40 -0.6192454 -0.8264446
#> 41 -0.5992028 -0.8190688
#> 42 -0.5802679 -0.8091905
#> 43 -0.5627517 -0.7969719
#> 44 -0.5469418 -0.7826138
#> 45 -0.5330977 -0.7663518
#> 46 -0.5214469 -0.7484529
#> 47 -0.5121805 -0.7292112
#> 48 -0.5054509 -0.7089424
#> 49 -0.5013683 -0.6879795
#> 50 -0.5000000 -0.6666667
#>