display_faces: Chernoff faces tour path animation.

View source: R/display-faces.r

display_facesR Documentation

Chernoff faces tour path animation.

Description

Animate a nD tour path with Chernoff's faces. Can display up to 18 dimensions.

Usage

display_faces(...)

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

Arguments

...

other arguments passed on to animate

data

matrix, or data frame containing numeric columns

tour_path

tour path generator, defaults to 2d grand tour

Details

This function requires the TeachingDemos package to draw the Chernoff faces. See faces2 for more details.

See Also

animate for options that apply to all animations

Examples

# The drawing code is fairly slow, so this animation works best with a
# limited number of cases
flea_s <- rescale(flea[,1:6])
animate_faces(flea_s[19:24, 1:6])

animate_faces(flea_s[19:24, 1:6], grand_tour(5))

tourr documentation built on May 29, 2024, 11:22 a.m.