# NOT RUN {
dat_std <- scale_sd(wine[, 2:6])
clas <- wine$Type
bas <- basis_pca(dat_std)
gt_path <- save_history(dat_std, tour_path = tourr::grand_tour(), max = 5)
# }
# NOT RUN {
play_tour_path(tour_path = g_path, data = dat_std)
play_tour_path(tour_path = g_path, data = dat_std,
axes = "bottomleft", angle = .08, fps = 8,
aes_args = list(color = clas, shape = clas),
identity_args = list(size = 1.5, alpha = .7),
ggproto =
list(ggplot2::theme_void(), ggplot2::ggtitle("My title")),
render_type = render_gganimate)
## Saving a .gif(may require additional setup)
if(F){ ## Don't run by mistake
## Export plotly .html widget
play_tour_path(tour_path = tpath, data = dat_std,
render_type = render_plotly,
html_filename = "myRadialTour.html")
## Export gganimate .gif
play_tour_path(tour_path = tpath, data = dat_std,
render_type = render_gganimate,
gif_path = "myOutput", gif_filename = "myRadialTour.gif")
}
# }
Run the code above in your browser using DataLab