yulijia / animation

A gallery of animations in statistics and utilities to create animations
https://yihui.name/animation
0 stars 0 forks source link

system2 test code #1

Open yulijia opened 6 years ago

yulijia commented 6 years ago
library(animation)
## generate some images
owd = setwd(tempdir())
ani.options(interval = 0.05, nmax = 20)
png("bm%03d.png")
brownian.motion(pch = 21, cex = 5, col = "red", bg = "yellow", 
  main = "Demonstration of Brownian Motion")
dev.off()

## filenames with a wildcard *
im.convert("bm*.png", output = "bm-animation1.gif")

ani.options(imgnfmt='%02d')

resolution

yulijia commented 5 years ago

Damn, I already forget why I start this test. It seems that I will receive an error message after run the code above:

Error in magick_image_readpath(path, density, depth, strip) : Magick: unable to open image `bm*.png': No such file or directory @ error/blob.c/OpenBlob/2761