Home Comments Thread
New Thread

1 Comment

giscus-bot giscus-bot 2022-12-16 18:18:57
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

yihui yihui 2022-12-16 18:18:58

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