Render frames of animation to disk
render(
data,
tour_path,
display,
dev,
...,
apf = 1/10,
frames = 50,
rescale = TRUE,
sphere = FALSE,
start = NULL
)
matrix, or data frame containing numeric columns
tour path generator
the method used to render the projected data,
e.g. display_xy
, display_pcp
other options passed to output device
angle (in radians) per frame
number of frames in output
if true, rescale all variables to range [0,1]
if true, sphere all variables
starting projection. If NULL
, uses path default.
if (FALSE) {
tmp_path <- tempdir()
render(flea[, 1:6], grand_tour(), display_xy(), "pdf",
frames = 3,
file.path(tmp_path, "test.pdf")
)
render(flea[, 1:6], grand_tour(), display_xy(), "png",
frames = 3,
file.path(tmp_path, "test-%03d.png")
)
}