Simulation of Burning Fire in R | /en/2009/06/simulation-of-burning-fire-in-r/
Simulation of Burning Fire in R
https://yihui.org/en/2009/06/simulation-of-burning-fire-in-r/
https://yihui.org/en/2009/06/simulation-of-burning-fire-in-r/
Guest *Maite* @ 2010-03-02 22:48:00 originally posted:
Ei, thank you so much for such a nice tools and examples! I have modified this script for my data but I want to modify the default plot size. I would like a rectangle. I have tried different options of jpg() or modifying the settings of par() within the plotting loop but still I get the same squared plot. Any ideas?
thanks,
maite
Did you correctly specify width and height in your graphical device? e.g. png(..., width = 600, height =400).
If you want to create an animation, just pass these two arguments to saveSWF():
saveSWF(Fire(50), interval = 0.05, dev = "png", outdir = getwd(),
para = list(mar = c(0, 0, 2, 0)), width = 600, height = 400)
Originally posted on 2010-03-03 02:48:42
Sign in to join the discussion
Sign in with GitHub