Hadley Wickham, Di Cook, Nick Spyrison, Ursula Laa, H. Sherry Zhang,
Stuart Lee
May 12, 2026
The goal of tourr is to explore shapes of high-dimensional data. This code also allows new tour methods to be created that utilise geodesic interpolation and basis generation functions.
You can install the released version of tourr from CRAN with:
install.packages("tourr")You can install the development version of tourr from github with:
# install.packages("remotes")
remotes::install_github("ggobi/tourr")To run a tour in R, use one of the animate functions. This code will show a 2D tour displayed as a scatterplot on a 6D data set with three labelled classes.
animate_xy(flea[,-7], col=flea$species)Depending on what operating system, and IDE, it may be useful to open a new device for running the animation, using
quartz()
on a Mac, or
X11()
on windows.
If you are running code from a quarto document, make sure to run it in the console of the IDE, so that the animation shows as an animation instead of a gazillion images written into the qmd window!
Beyond the website, a good place to get started is the Interactively exploring high-dimensional data and models in R. The original documentation is Journal of Statistical Software paper remains useful for understanding the package structure, capabilities and how to extend it.