The planned tour takes you from one basis to the next in a
set order. Once you have visited all the planned bases, you either stop
or start from the beginning once more (if cycle = TRUE
).
planned_tour(basis_set, cycle = FALSE)
planned2_tour(basis_set)
the set of bases as a list of projection matrices or a 3d array
cycle through continuously (TRUE
) or stop after
first pass (FALSE
)
Usually, you will not call this function directly, but will pass it to
a method that works with tour paths like animate
,
save_history
or render
.
The little_tour
, a special type of planned tour
which cycles between all axis parallel projections.
twod <- save_history(flea[, 1:3], max = 5)
#> Converting input data to the required matrix format.
str(twod)
#> num [1:3, 1:2, 1:5] 1 0 0 0 1 ...
#> - attr(*, "data")= int [1:74, 1:3] 191 185 200 173 171 160 188 186 174 163 ...
#> ..- attr(*, "dimnames")=List of 2
#> .. ..$ : chr [1:74] "1" "2" "3" "4" ...
#> .. ..$ : chr [1:3] "tars1" "tars2" "head"
animate_xy(flea[, 1:3], planned_tour(twod))
#> Converting input data to the required matrix format.
#> Using half_range 65
animate_xy(flea[, 1:3], planned_tour(twod, TRUE))
#> Converting input data to the required matrix format.
#> Using half_range 65
oned <- save_history(flea[, 1:6], grand_tour(1), max = 3)
#> Converting input data to the required matrix format.
animate_dist(flea[, 1:6], planned_tour(oned))
#> Converting input data to the required matrix format.
#> Using half_range 66