Learn R Programming

⚠️There's a newer version (1.2.6) of this package.Take me there.

tourr (version 1.0.0)

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,305

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

June 20th, 2023

Functions in tourr (1.0.0)

animate

Animate a tour path.
basis_nearby

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

If not set, compute epsilon based on half_range
cmass

Central mass index.
display_density2d

Display tour path with a density and scatterplot
blank_plot

Set up a blank plot to display data projections
bases_little

Generate bases for the little tour
correct_orientation

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

Test if all entries are colors
display_andrews

Andrews' curves tour path animation.
check_freezer_safe

Check matrix is a valid frozen matrix
display_pcp

Parallel coordinates tour path animation.
display_pca

Display tour path with principal component scores with original axes
estimate_eps

Estimate cutoff eps for section pursuit.
display_depth

Display 3d projection with depth cues
display_dist

1d distribution tour path animation.
cumulative_radial

Calculate radial cumulative distribtuion
display_sage

Display tour path with a sage scatterplot
draw_tour_axes

Draw tour axes on the projected data with base graphics
frozen_guided_tour

The frozen guided tour
dependence_tour

A dependence tour path.
display_slice

Display tour path with a sliced scatterplot
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_slice_center

Draw slice center guide with base graphics
eucl_norm_sq

Calculate the squared Euclidean norm of a vector x
display_groupxy

Display 2D tour projections displayed separately by groups
display_scatmat

Scatterplot matrix tour path animation.
display_trails

Display tour path with trails
find_platform

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

Freeze and thaw matrices
dcor2d

Distance correlation index.
frozen_tour

A frozen tour path.
display_xy

Display tour path with a scatterplot
find_frozen_path_peak

Find most highest peak along frozen geodesic.
geodesic_info

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

Returns n equidistant bins between a and b
lda_pp

LDA projection pursuit index.
grand_tour

A grand tour path.
find_best_dir

Find the most promising direction to travel in.
guided_section_tour

A guided section tour path.
guided_tour

A guided tour path.
path_dist

Compute distance matrix from bases.
little_tour

A little tour path.
geodesic_path

Generate geodesic path.
holes

Holes index.
norm_bin

Normality index.
interpolate

Interpolate geodesically between bases.
is_orthonormal

Test if a numeric matrix is orthonormal.
local_tour

A local tour path.
orthonormalise_by

Orthonormalise one matrix by another.
find_path_peak

Find the most interesting projection along a geodesic.
radial_tour

A radial tour path.
new_tour

Create a new tour.
project3d

Stereographic projection
radial_bin_weight_inv

Inverse weights for rescaling counts in radial bins.
path_index

Compute index values for a tour history.
find_best_frozen_dir

Find most promising direction in frozen space.
manual_slice

Manually slice along a variable axis.
path_curves

Draw the path that the geodesics took.
new_geodesic_path

Generate a geodesic path between bases supplied by generator
mapShapes

Map vector of factors to pch
mapColors

Map vector of factors to color
pda_pp

PDA projection pursuit index.
search_geodesic

A pseudo-derivative, line search algorithm.
paths_index

Compute index value for many histories.
proj_dist

Calculate the distance between two bases.
search_polish

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

Render plotly animation frame
plot.path_index

Plot history index with ggplot2.
planned_tour

A planned tour path.
rescale

Rescale a matrix or data frame
render

Render frames of animation to disk
weights_bincount_radial

Computes weights for the rescaling of radial bin counts.
search_posse

Search for a better projection based on Poss, 1995
slice_index

Section pursuit index.
slice_binning

Separately binning observations inside and outside the slice.
step_angle

Step along an interpolated path by angle in radians.
splines2d

Spline based index.
plot.path_curve

Plot history curves.
xnul

A null function
render_gif

Render frames of animation to a gif file
render_anim

Render a set of animation frames
normalise

Normalise a numeric matrix.
tourr-package

tourr: Tour Methods for Multivariate Data Visualisation
to_stop

Prints information on how to stop the output
search_frozen_geodesic

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

Search for a better projection using simulated annealing
save_history

Save tour history.
orthonormalise

Orthonormalise using modified Gram-Schmidt process.
t1

Saved history of guided tour with holes
step_fraction

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

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

Search for a better projection near the current projection.
Tropical Atmosphere Ocean

Tropical Atmosphere Ocean data
andrews

Compute Andrews' curves
anchored_orthogonal_distance

Calculate orthogonal distances
basis_random

Generate a random basis
Laser measurements

Turnable laser measurements from Bellcore
Rat CNS

Rat CNS Gene Expression
Olive oil measurements

Olive oil samples from Italy
anaglyph

Draw anaglyphs with base graphics.
Places Ratings

Ratings of different locations across North America
Flea measurements

Flea beatle measurements
basis_init

Generate initial basis.
Ozone measurements

Monthly ozone measurements over Central America
center

Center a numeric vector by subtracting off its mean.
angular_breaks

Returns n equidistant bins between -pi and pi