| arrange | R Documentation |
Returns a new magick-image object with frames placed in the order
given by order. Use this after read when the
lexicographic filename sort does not match the intended frame sequence.
arrange(images, order)
images |
an object of class |
order |
integer vector of frame indices giving the desired order.
Must be a permutation of |
a magick-image object with frames in the requested order.
After each operation a message listing the updated frame sequence is
printed in interactive sessions. Use
stopmotion_verbosity(FALSE) to suppress these messages, or set
options(stopmotion.verbose = FALSE) in your script or
‘.Rprofile’.
dino_dir <- system.file("extdata", package = "stopmotion")
images <- read(dir = dino_dir)
# Swap the first and second frame.
images <- arrange(images, order = c(2L, 1L, seq(3L, 10L)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.