Animate a nD tour path with Andrews' curves. For more details about Andrew's curves, see andrews

display_andrews(col = "black", palette = "Zissou 1", ...)

animate_andrews(data, tour_path = grand_tour(3), col = "black", ...)

Arguments

col

color to be plotted. Defaults to "black"

palette

name of color palette for point colour, used by hcl.colors, default "Zissou 1"

...

other arguments passed on to animate

data

matrix, or data frame containing numeric columns

tour_path

tour path generator, defaults to 2d grand tour

See also

animate for options that apply to all animations

Examples

animate_andrews(flea[, 1:6])
#> Converting input data to the required matrix format.



animate_andrews(flea[, 1:6], grand_tour(d = 3))
#> Converting input data to the required matrix format.



animate_andrews(flea[, 1:6], grand_tour(d = 6))
#> Converting input data to the required matrix format.




# It's easy to experiment with different tour paths:
animate_andrews(flea[, 1:6], guided_tour(cmass()))
#> Converting input data to the required matrix format.
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> Value  -0.582   -0.0 % better 
#> No better bases found after 25 tries.  Giving up.
#> Final projection: 
#> 0.029  -0.982  
#> -0.270  -0.009  
#> -0.416  -0.089  
#> 0.357  0.135  
#> 0.385  -0.087  
#> 0.691  -0.038