# NOT RUN {
dat <- scale_sd(penguins[, 1:4])
clas <- penguins$species
bas <- basis_pca(dat)
mv <- manip_var_of(bas)
## d = 2 case
mt_path <- manual_tour(bas, manip_var = mv)
ggt <- ggtour(mt_path, dat, angle = .3) +
proto_point(list(color = clas, shape = clas),
list(size = 1.5)) +
proto_basis()
filmstrip(ggt)
## d = 1 case & specify facet dim
bas1d <- basis_pca(dat, d = 1)
mt_path1d <- manual_tour(basis = bas1d, manip_var = mv)
ggt1d <- ggtour(mt_path1d, dat, angle = 10) +
proto_default1d(aes_args = list(fill = clas))
filmstrip(ggt1d, nrow = 12, ncol = 3)
# }
Run the code above in your browser using DataLab