# NOT RUN {
flea_std <- tourr::rescale(tourr::flea[, 1:6])
flea_class <- tourr::flea$species
rb <- tourr::basis_random(n = ncol(flea_std))
mtour <- manual_tour(basis = rb, manip_var = 4)
sshow <- array2df(array = mtour, data = flea_std)
# }
# NOT RUN {
render_gganimate(slides = sshow)
render_gganimate(slides = sshow, axes = "bottomleft", fps = 2, rewind = TRUE,
col = flea_class, pch = flea_class, size = 2, alpha = .6)
if(F){
render_gganimate(slides = sshow, axes = "right", fps = 4, rewind = TRUE,
col = flea_class, pch = flea_class, size = 2,
gif_filename = "myRadialTour.gif", gif_path = "./docs")
}
# }
Run the code above in your browser using DataLab