Learn R Programming

tourr (version 1.2.6)

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

839

Version

1.2.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

July 13th, 2025

Functions in tourr (1.2.6)

check_freezer_safe

Check matrix is a valid frozen matrix
basis_random

Generate a random basis
correct_orientation

check if the current and target bases are of the same orientation
display_sage

Display tour path with a sage scatterplot
display_pcp

Parallel coordinates tour path animation.
compute_v_rel

If not set, compute epsilon based on half_range
draw_tour_axes

Draw tour axes on the projected data with base graphics
estimate_eps

Estimate cutoff eps for section pursuit.
display_density2d

Display tour path with a density and scatterplot
display_groupxy

Display 2D tour projections displayed separately by groups
display_idx

Display a 1D linear aggregation index
cmass

Central mass index.
eucl_norm_sq

Calculate the squared Euclidean norm of a vector x
display_depth

Display 3d projection with depth cues
draw_slice_center

Draw slice center guide with base graphics
find_frozen_path_peak

Find most highest peak along frozen geodesic.
find_path_peak

Find the most interesting projection along a geodesic.
display_dist

1d distribution tour path animation.
display_faces

Chernoff faces tour path animation.
find_best_dir

Find the most promising direction to travel in.
display_pca

Display tour path with principal component scores with original axes
find_best_frozen_dir

Find most promising direction in frozen space.
paths_index

Compute index value for many histories.
normalise

Normalise a numeric matrix.
orthonormalise

Orthonormalise using modified Gram-Schmidt process.
cumulative_radial

Calculate radial cumulative distribtuion
display_image

Image tour path animation.
dcor2d

Distance correlation index.
find_platform

Find the platform Find the platform being used by the user
frozen_guided_tour

The frozen guided tour
display_xy

Display tour path with a scatterplot
grand_tour

A grand tour path.
display_trails

Display tour path with trails
display_slice

Display tour path with a sliced scatterplot
display_andrews

Andrews' curves tour path animation.
display_scatmat

Scatterplot matrix tour path animation.
dependence_tour

A dependence tour path.
pda_pp

PDA projection pursuit index.
display_stars

Star glyph tour path animation.
display_stereo

Anaglpyh tour path animation.
geodesic_info

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

Holes index.
geodesic_path

Generate geodesic path.
guided_section_tour

A guided section tour path.
guided_tour

A guided tour path.
frozen_tour

A frozen tour path.
guided_anomaly_tour

A guided anomaly tour path.
lda_pp

LDA projection pursuit index.
freeze

Freeze and thaw matrices
search_jellyfish

A jellyfish optimiser for projection pursuit guided tour
local_tour

A local tour path.
mapShapes

Map vector of factors to pch
mahal_dist

Calculate the Mahalanobis distance between points and center.
slice_index

Section pursuit index.
sphere_data

Sphere a matrix (or data frame) by transforming variables to principal components.
project3d

Stereographic projection
proj_dist

Calculate the distance between two bases.
little_tour

A little tour path.
linear_breaks

Returns n equidistant bins between a and b
new_geodesic_path

Generate a geodesic path between bases supplied by generator
norm_bin

Normality index.
MIC

Maximum and total information coefficient index.
path_dist

Compute distance matrix from bases.
new_tour

Create a new tour.
path_index

Compute index values for a tour history.
rescale

Rescale a matrix or data frame
save_history

Save tour history.
plot.path_index

Plot history index with ggplot2.
planned_tour

A planned tour path.
radial_bin_weight_inv

Inverse weights for rescaling counts in radial bins.
interpolate

Interpolate geodesically between bases.
print_final_proj

Print out the final projection basis
radial_tour

A radial tour path.
search_better

Search for a better projection near the current projection.
is_orthonormal

Test if a numeric matrix is orthonormal.
search_frozen_geodesic

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

Computes weights for the rescaling of radial bin counts.
plot.path_curve

Plot history curves.
search_geodesic

A pseudo-derivative, line search algorithm.
tourr-package

tourr: Tour Methods for Multivariate Data Visualisation
stringy

Scagnostic indexes.
render_gif

Render frames of animation to a gif file
path_curves

Draw the path that the geodesics took.
step_fraction

Step along an interpolated path by fraction of path length.
search_better_random

Search for a better projection using simulated annealing
orthonormalise_by

Orthonormalise one matrix by another.
render_proj

Render plotly animation frame
xnul

A null function
skewness

Skewness index.
manual_slice

Manually slice along a variable axis.
mapColors

Map vector of factors to color
render

Render frames of animation to disk
render_anim

Render a set of animation frames
search_polish

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

Separately binning observations inside and outside the slice.
to_stop

Prints information on how to stop the output
t1

Saved history of guided tour with holes
search_posse

Search for a better projection based on Poss, 1995
splines2d

Spline/loess based index.
step_angle

Step along an interpolated path by angle in radians.
Places Ratings

Ratings of different locations across North America
anchored_orthogonal_distance

Calculate orthogonal distances
andrews

Compute Andrews' curves
animate

Animate a tour path.
angular_breaks

Returns n equidistant bins between -pi and pi
center

Center a numeric vector by subtracting off its mean.
anomaly_index

Anomaly index.
areColors

Test if all entries are colors
basis_init

Generate initial basis.
Ozone measurements

Monthly ozone measurements over Central America
Tropical Atmosphere Ocean

Tropical Atmosphere Ocean data
Rat CNS

Rat CNS Gene Expression
anaglyph

Draw anaglyphs with base graphics.
Laser measurements

Turnable laser measurements from Bellcore
blank_plot

Set up a blank plot to display data projections
bases_little

Generate bases for the little tour
Flea measurements

Flea beatle measurements
Olive oil measurements

Olive oil samples from Italy
basis_nearby

Generate nearby bases, e.g. for simulated annealing.