Yearly Archives: 2007

7 posts

Five days at KU Life

The last days 5-9 November I have been visiting Professor Anders Ringgaard Kristensen at KU Life. We have been working on a package in R “MDP” which will provide tools for solving Markov decision processes and their extension multi-level hirarchic Markov decision processes. The package will be based on a solver made by Anders in Java.

Creating an animation (gif/mpeg) in R using intermediate files

I recent had a discussion with Søren about how one could create an animation of some plots in R. After searching the mail-list it seems that the best way to do it is using ImageMagick which is a free set of tools to create, edit, and compose bitmap images. To use the following guide you must install ImageMagick. Creating an animated gif We create an animated gif file in two steps. First, we save all the plots used in the animation as png files (vector file format) and second, we merge them into a gif animation. Lets try a simple example: > x<-1:10 > y<-runif(10,1.5,2.5) > xlim<-c(0,10) > ylim<-c(0,4) > png(file=”plot%02d.png”, bg=”transparent”) > plot(x, y, type=”n”, xlim=xlim, ylim=ylim) > title(“Create 10 uniform distributed samples”) > for (i in 1:10) plot(x[i], y[i], axes=F, xlab=””, ylab=””, xlim=xlim, ylim=ylim) > We have now created intermediate files plot01.png to plot11.png. Note Plot plot01.png […]

First Nordic-Baltic Biometric Conference

The Nordic-Baltic Biometric Conference 2007 (NBBC07) is the first conference arranged by the Nordic Regional and Baltic National Biometric Societies. The conferences aim at to supplement the series arranged by the International Biometric Society and are held in order to strengthen the collaborative efforts of the Nordic researchers interested in biometry and statistics in general. NBBC07 is hosted by the Research Unit of Statistics and Decision Analysis, Department of Genetics and Biotechnology, Faculty of Agricultural Sciences, University of Aarhus situated at Research Centre Foulum. For more information see the conference web-site.