tourr (version 0.5.4)

display_depth: Display 3d projection with depth cues

Description

Suggestion to use gray background and colour saturation (instead of gray shading) by Graham Wills.

Usage

display_depth(center = TRUE, half_range = NULL, ...)

animate_depth(data, tour_path = grand_tour(3), ...)

Arguments

center

should projected data be centered to have mean zero (default: TRUE). This pins the centre of the data to the same place, and makes it easier to focus on the shape.

half_range

half range to use when calculating limits of projected. If not set, defaults to maximum distance from origin to each row of data.

...

other arguments passed on to animate

data

matrix, or data frame containing numeric columns

tour_path

tour path generator, defaults to 2d grand tour

See Also

animate for options that apply to all animations

Examples

Run this code
# NOT RUN {
animate_depth(flea[, 1:6])
# }

Run the code above in your browser using DataCamp Workspace