tourr (version 0.5.5)

display_image: Image tour path animation.

Description

Animate a 1d tour path with an image plot. This animation requires a different input data structure, a 3d array. The first two dimensions are locations on a grid, and the 3rd dimension gives the observations to be mixed with the tour.

Usage

display_image(xs, ys, ...)

animate_image(data, tour_path = grand_tour(1), ...)

Arguments

xs

x limit that is used in making the size of the plot

ys

y limit that is used in making the size of the plot

...

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 {
str(ozone)
animate_image(ozone)
# }

Run the code above in your browser using DataCamp Workspace