# NOT RUN {
library(spinifex)
dat <- scale_sd(penguins[, 1:4])
clas <- penguins$species
gt_path <- save_history(dat, grand_tour(), max_bases = 5)
ggt <- ggtour(gt_path, dat, angle = .3) +
proto_default(aes_args = list(color = clas, shape = clas)) +
proto_frame_cor2(xy_position = c(.5, 1.1))
# }
# NOT RUN {
animate_plotly(ggt)
# }
Run the code above in your browser using DataLab