Learn R Programming

tourr (version 1.2.4)

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

1,454

Version

1.2.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

February 13th, 2025

Functions in tourr (1.2.4)

display_andrews

Andrews' curves tour path animation.
correct_orientation

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

If not set, compute epsilon based on half_range
blank_plot

Set up a blank plot to display data projections
display_image

Image tour path animation.
display_pcp

Parallel coordinates tour path animation.
display_slice

Display tour path with a sliced scatterplot
angular_breaks

Returns n equidistant bins between -pi and pi
animate

Animate a tour path.
display_groupxy

Display 2D tour projections displayed separately by groups
display_pca

Display tour path with principal component scores with original axes
display_idx

Display a 1D linear aggregation index
cumulative_radial

Calculate radial cumulative distribtuion
display_scatmat

Scatterplot matrix tour path animation.
dcor2d

Distance correlation index.
areColors

Test if all entries are colors
anomaly_index

Anomaly index.
cmass

Central mass index.
display_trails

Display tour path with trails
display_stars

Star glyph tour path animation.
display_faces

Chernoff faces tour path animation.
check_freezer_safe

Check matrix is a valid frozen matrix
display_dist

1d distribution tour path animation.
grand_tour

A grand tour path.
display_xy

Display tour path with a scatterplot
find_best_dir

Find the most promising direction to travel in.
guided_anomaly_tour

A guided anomaly tour path.
MIC

Maximum and total information coefficient index.
display_stereo

Anaglpyh tour path animation.
holes

Holes index.
center

Center a numeric vector by subtracting off its mean.
estimate_eps

Estimate cutoff eps for section pursuit.
display_density2d

Display tour path with a density and scatterplot
search_jellyfish

A jellyfish optimiser for projection pursuit guided tour
display_depth

Display 3d projection with depth cues
eucl_norm_sq

Calculate the squared Euclidean norm of a vector x
mapShapes

Map vector of factors to pch
guided_section_tour

A guided section tour path.
guided_tour

A guided tour path.
find_best_frozen_dir

Find most promising direction in frozen space.
lda_pp

LDA projection pursuit index.
find_frozen_path_peak

Find most highest peak along frozen geodesic.
new_geodesic_path

Generate a geodesic path between bases supplied by generator
find_path_peak

Find the most interesting projection along a geodesic.
frozen_guided_tour

The frozen guided tour
geodesic_info

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

Print out the final projection basis
frozen_tour

A frozen tour path.
plot.path_index

Plot history index with ggplot2.
display_sage

Display tour path with a sage scatterplot
interpolate

Interpolate geodesically between bases.
paths_index

Compute index value for many histories.
local_tour

A local tour path.
is_orthonormal

Test if a numeric matrix is orthonormal.
orthonormalise

Orthonormalise using modified Gram-Schmidt process.
normalise

Normalise a numeric matrix.
new_tour

Create a new tour.
slice_index

Section pursuit index.
pda_pp

PDA projection pursuit index.
draw_slice_center

Draw slice center guide with base graphics
plot.path_curve

Plot history curves.
geodesic_path

Generate geodesic path.
draw_tour_axes

Draw tour axes on the projected data with base graphics
linear_breaks

Returns n equidistant bins between a and b
little_tour

A little tour path.
planned_tour

A planned tour path.
render_gif

Render frames of animation to a gif file
render_proj

Render plotly animation frame
search_polish

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

Normality index.
find_platform

Find the platform Find the platform being used by the user
freeze

Freeze and thaw matrices
project3d

Stereographic projection
rescale

Rescale a matrix or data frame
proj_dist

Calculate the distance between two bases.
manual_slice

Manually slice along a variable axis.
mapColors

Map vector of factors to color
search_better

Search for a better projection near the current projection.
search_better_random

Search for a better projection using simulated annealing
path_curves

Draw the path that the geodesics took.
mahal_dist

Calculate the Mahalanobis distance between points and center.
xnul

A null function
search_posse

Search for a better projection based on Poss, 1995
save_history

Save tour history.
orthonormalise_by

Orthonormalise one matrix by another.
path_dist

Compute distance matrix from bases.
to_stop

Prints information on how to stop the output
t1

Saved history of guided tour with holes
render_anim

Render a set of animation frames
path_index

Compute index values for a tour history.
stringy

Scagnostic indexes.
sphere_data

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

Render frames of animation to disk
weights_bincount_radial

Computes weights for the rescaling of radial bin counts.
search_geodesic

A pseudo-derivative, line search algorithm.
search_frozen_geodesic

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

tourr: Tour Methods for Multivariate Data Visualisation
radial_tour

A radial tour path.
radial_bin_weight_inv

Inverse weights for rescaling counts in radial bins.
step_fraction

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

Skewness index.
slice_binning

Separately binning observations inside and outside the slice.
step_angle

Step along an interpolated path by angle in radians.
splines2d

Spline/loess based index.
Olive oil measurements

Olive oil samples from Italy
anchored_orthogonal_distance

Calculate orthogonal distances
andrews

Compute Andrews' curves
Tropical Atmosphere Ocean

Tropical Atmosphere Ocean data
Flea measurements

Flea beatle measurements
anaglyph

Draw anaglyphs with base graphics.
Laser measurements

Turnable laser measurements from Bellcore
Ozone measurements

Monthly ozone measurements over Central America
basis_init

Generate initial basis.
bases_little

Generate bases for the little tour
dependence_tour

A dependence tour path.
Rat CNS

Rat CNS Gene Expression
basis_nearby

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

Generate a random basis
Places Ratings

Ratings of different locations across North America