Blog Archives

Setting up emacs org-mode babel for R on Ubuntu

January 7, 2013
By
Setting up emacs org-mode babel for R on Ubuntu

I installed org-mode seperately, since I had troubles with its default setting (similar to the problems described here). sudo apt-get install org-mode Next I download and installed ESS cd ~/.emacs.d/ wget http://ess.r-project.org/downloads/ess/ess-12.09-1.zip unzip ess-12.09-1.zip rm ess-12.09-1.zip Finally I had to … Continue reading →

Read more »

Vim-R-plugin: Installation

August 6, 2012
By
Vim-R-plugin: Installation

On Ubuntu 12.04, I took to the following steps to install Vim-R-plugin: First I had to install timux: sudo apt-get installl tmux Having already installed vim-pathogen, I used git to clone to install vim-r-plugin and vim-screen plugin, which is also … Continue reading →

Read more »

Reproducible research with markdown, knitr and pandoc

May 17, 2012
By
Reproducible research with markdown, knitr and pandoc

Over the last few weeks I was trying to optimise my workflow using markdow in combination with knitr and pandoc. Knitr is a grea new package by Yihui, expanding R’s capabilities for reproducible research. I will illustrate my work flow … Continue reading →

Read more »

lubridate: working with date and time in R

March 28, 2012
By
lubridate: working with date and time in R

Working with date and time in R is sometimes tricky. Today I gave lubridate a try and was surprised on how easy it can be. Lubridate is a available on git and on CRAN. There is also a good introduction … Continue reading →

Read more »

Read zipped file into R

May 14, 2011
By
Read zipped file into R

Sometimes I do not want to unzip files before reading them to R. There is a nice way of reading zipped file (via a tmp dir) into R. Where the file test.csv is actually located in the: ~/files/myzip.zip/test.csv.

Read more »

Stacked histogram with ggplot2

December 22, 2010
By
Stacked histogram with ggplot2

With ggplot2 there is a possibility to create divide bars of a histogram into different categories:

Read more »

ROC – plot

November 1, 2010
By
ROC – plot

There are many implantation in R already of ROC plots (e.g. in the packages PresenceAbsence, ROCR). I just wrote my own very simple script just to get a better understanding of it.

Read more »

ggplot2 change axis labels

November 1, 2010
By
ggplot2 change axis labels

Today, I will try to change the labels of the x and y axis.

Read more »

Scatter plot with ggplot2

October 31, 2010
By
Scatter plot with ggplot2

I decided to go use ggplot2 more frequently and go through everything. For future reference I will start a series of blog posts on ggplot2. Scatter plot: In my next post, I will change the axis labels.

Read more »

Finding presence data for species distribution modelling (SDM)

October 20, 2010
By
Finding presence data for species distribution modelling (SDM)

Getting presence data of species is often not easy and can be a major obstacle when attempting to model the distribution of species. One way is using the GBIF data base. Here I show one way how to obtain presence … Continue reading →

Read more »