Learn R Programming

tourr (version 1.2.8)

Tour Methods for Multivariate Data Visualisation

Description

Implements geodesic interpolation and basis generation functions that allow you to create new tour methods from R.

Copy Link

Version

Install

install.packages('tourr')

Monthly Downloads

3,061

Version

1.2.8

License

MIT + file LICENSE

Maintainer

Di Cook

Last Published

July 5th, 2026

Functions in tourr (1.2.8)

display_sage

Display tour path with a sage scatterplot
display_dependence

Display tour path with two groups of variables
display_pca

Display tour path with principal component scores with original axes
display_groupxy

Display 2D tour projections displayed separately by groups
display_idx

Display a 1D linear aggregation index
display_trails

Display tour path with trails
display_pcp

Parallel coordinates tour path animation.
display_xy

Display tour path with a scatterplot
display_dist

1d distribution tour path animation.
display_depth

Display 3d projection with depth cues
draw_slice_center

Draw slice center guide with base graphics
display_faces

Chernoff faces tour path animation.
display_stereo

Anaglpyh tour path animation.
display_stars

Star glyph tour path animation.
display_image

Image tour path animation.
draw_tour_axes

Draw tour axes on the projected data with base graphics
estimate_eps

Estimate cutoff eps for section pursuit.
frozen_guided_tour

The frozen guided tour
eucl_norm_sq

Calculate the squared Euclidean norm of a vector x
display_scatmat

Scatterplot matrix tour path animation.
display_slice

Display tour path with a sliced scatterplot
freeze

Freeze and thaw matrices
geodesic_info

Calculate information required to interpolate along a geodesic path between two frames.
find_platform

Find the platform Find the platform being used by the user
frozen_tour

A frozen tour path.
find_best_dir

Find the most promising direction to travel in.
find_path_peak

Find the most interesting projection along a geodesic.
guided_section_tour

A guided section tour path.
MIC

Maximum and total information coefficient index.
guided_tour

A guided tour path.
grand_tour

A grand tour path.
guided_anomaly_tour

A guided anomaly tour path.
find_best_frozen_dir

Find most promising direction in frozen space.
holes

Holes index.
geodesic_path

Generate geodesic path.
find_frozen_path_peak

Find most highest peak along frozen geodesic.
interpolate

Interpolate geodesically between bases.
is_orthonormal

Test if a numeric matrix is orthonormal.
linear_breaks

Returns n equidistant bins between a and b
local_tour

A local tour path.
mapShapes

Map vector of factors to pch
mapColors

Map vector of factors to color
little_tour

A little tour path.
manual_slice

Manually slice along a variable axis.
path_curves

Draw the path that the geodesics took.
path_dist

Compute distance matrix from bases.
paths_index

Compute index value for many histories.
pda_pp

PDA projection pursuit index.
path_index

Compute index values for a tour history.
print_final_proj

Print out the final projection basis
proj_dist

Calculate the distance between two bases.
lda_pp

LDA projection pursuit index.
search_jellyfish

A jellyfish optimiser for projection pursuit guided tour
render

Render frames of animation to disk
norm_bin

Normality index.
mahal_dist

Calculate the Mahalanobis distance between points and center.
render_anim

Render a set of animation frames
radial_tour

A radial tour path.
render_gif

Render frames of animation to a gif file
render_proj

Render plotly animation frame
stringy

Scagnostic indexes.
orthonormalise_by

Orthonormalise one matrix by another.
planned_tour

A planned tour path.
normalise

Normalise a numeric matrix.
new_tour

Create a new tour.
save_history

Save tour history.
slice_index

Section pursuit index.
search_better

Search for a better projection near the current projection.
to_stop

Prints information on how to stop the output
xnul

A null function
splines2d

Spline/loess based index.
step_angle

Step along an interpolated path by angle in radians.
plot.path_curve

Plot history curves.
new_geodesic_path

Generate a geodesic path between bases supplied by generator
skewness

Skewness index.
project3d

Stereographic projection
slice_binning

Separately binning observations inside and outside the slice.
search_polish

Search very locally to find slightly better projections to polish a broader search.
search_frozen_geodesic

A pseudo-derivative, line search algorithm along frozen geodesics.
search_posse

Search for a better projection based on Poss, 1995
t1

Saved history of guided tour with holes
search_geodesic

A pseudo-derivative, line search algorithm.
radial_bin_weight_inv

Inverse weights for rescaling counts in radial bins.
rescale

Rescale a matrix or data frame
search_better_random

Search for a better projection using simulated annealing
step_fraction

Step along an interpolated path by fraction of path length.
tourr-package

tourr: Tour Methods for Multivariate Data Visualisation
weights_bincount_radial

Computes weights for the rescaling of radial bin counts.
orthonormalise

Orthonormalise using modified Gram-Schmidt process.
plot.path_index

Plot history index with ggplot2.
sphere_data

Sphere a matrix (or data frame) by transforming variables to principal components.
Tropical Atmosphere Ocean

Tropical Atmosphere Ocean data
anchored_orthogonal_distance

Calculate orthogonal distances
angular_breaks

Returns n equidistant bins between -pi and pi
andrews

Compute Andrews' curves
anomaly_index

Anomaly index.
areColors

Test if all entries are colors
center

Center a numeric vector by subtracting off its mean.
display_density2d

Display tour path with a density and scatterplot
animate

Animate a tour path.
dependence_tour

A dependence tour path.
compute_v_rel

If not set, compute epsilon based on half_range
basis_dep_init

Initial basis for dependence tour.
bases_little

Generate bases for the little tour
display_andrews

Andrews' curves tour path animation.
cumulative_radial

Calculate radial cumulative distribtuion
cmass

Central mass index.
dcor2d

Distance correlation index.
anaglyph

Draw anaglyphs with base graphics.
basis_nearby

Generate nearby bases, e.g. for simulated annealing.
Olive oil measurements

Olive oil samples from Italy
basis_random

Generate a random basis
Laser measurements

Turnable laser measurements from Bellcore
blank_plot

Set up a blank plot to display data projections
Places Ratings

Ratings of different locations across North America
correct_orientation

check if the current and target bases are of the same orientation
Flea measurements

Flea beatle measurements
Rat CNS

Rat CNS Gene Expression
basis_init

Generate initial basis.
Ozone measurements

Monthly ozone measurements over Central America
check_freezer_safe

Check matrix is a valid frozen matrix