imrep | R Documentation |
Kinda like rep, for images. Copy image n times and (optionally), append.
imrep(x, n = 1, axis = NULL)
x |
an image |
n |
number of replications |
axis |
axis to append along (one of NULL, "x","y","z","c"). Default: NULL |
either an image or an image list
Simon Barthelme
#Result is a list
imrep(boats,3) %>% plot
#Result is an image
imrep(boats,3,"x") %>% plot
#Make an animation by repeating each frame 10x
#map_il(1:5,~ isoblur(boats,.) %>% imrep(10,"z")) %>%
# imappend("z") %>% play
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.