View source: R/display-image.r
display_image | R Documentation |
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.
display_image(xs, ys, ...)
animate_image(data, tour_path = grand_tour(1), ...)
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 |
data |
matrix, or data frame containing numeric columns |
tour_path |
tour path generator, defaults to 2d grand tour |
animate
for options that apply to all animations
str(ozone)
animate_image(ozone)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.