Publications by Max Gordon

R – some introductory material

12.05.2012

R is a statistical programming language and can be a little scary at first. I learned it during my first statistics class. While others used Stata, I decided to try if I could do the tasks in R. That was probably one of my best research-choices. My main source of knowledge was Quick-R that’s an excellent resource. It goes through the basics and...

1137 sym

Setting up StatET & Eclipse in Windows

15.05.2012

A view of the StatET plugin in the Juno Eclipse. The environment is perfect for developing R packages and creating more complex functions. I wanted to write about creating R-packages in Windows but after trying to get StatET to work seamlessly in Windows I decided that maybe I should start with the very basics. I found Longhow Lam’s excellent P...

4478 sym R (77 sym/1 pcs) 18 img

My two favorite IDE’s for R – tips & tricks

20.05.2012

The two IDE that I use for R are RStudio and Eclipse with StatET. They complement each other nicely, RStudio works out of the box while I previously shown how to get Eclipse & StatET going, you can find it here, which is slightly challanging. RStudio I use RStudio for all my statistics where I don’t want to create functions or more advanced pro...

2861 sym 12 img

Getting started with Sweave & knitr

06.08.2012

Cool woven artwork on the campus of Kansas University. The image is CC by Patrick Emerson I recently started to work with Sweave (by Friedrich Leisch) and found it a truly awesome package. The ease of use is amazing. In this post I’ll try to get you started with first Sweave and then the knitr (by Yihui Xie). The knitr package is a more adv...

5837 sym R (1874 sym/7 pcs) 14 img

Creating an R package in Windows

21.11.2012

A nice package can be both beautiful and functional. The image is CC by MIAD Communication Design. Inspired by this post by Szilard Pafka I decided to do a similar adventure in a Windows environment and see what problems I run into. Start by installing Eclipse & StatET, the installation can sometimes cause some annoyances. I’ve covered a lot of...

5004 sym R (1911 sym/11 pcs) 12 img 4 tbl

Personal CRAN-repository

24.11.2012

Offering – the backbone of open source. The image is CC by TenthMusePhotography This is part II of the previous package creation post. I’ve created my own CRAN repository since I wanted a quick upload. Perhaps in the future I’ll post on the main server but right now it’s actually rather convenient, although it took me a while to figure ou...

1511 sym R (616 sym/3 pcs) 2 img 1 tbl

Chocolate and nobel prize – a true story?

22.12.2012

Few of us can resist chocolate, but the real question is: should we even try to resist it? The image is CC by Tasumi1968. As a dark chocolate addict I was relieved to see Messerli’s ecological study on chocolate consumption and the relation to nobel prizes. By scraping various on-line sources he made a robust case for increased chocolate consu...

3119 sym R (6117 sym/18 pcs) 10 img 9 tbl

Tables from R into Word

05.02.2013

A good looking table matters! This tutorial is on how to create a neat table in Word by combining knitr and R Markdown. I’ll be using my own function, htmlTable, from the Gmisc package. Background: Because most journals that I submit to want the documents in Word and not LaTeX, converting my output into Word is essential. I used to rely on con...

2551 sym R (1712 sym/6 pcs) 6 img 4 tbl

Exporting nice plots in R

25.02.2013

It’s not always easy getting the right size. The image is CC by Kristina Gill. A vital part of statistics is producing nice plots, an area where R is outstanding. The graphical ablility of R is often listed as a major reason for choosing the language. It is therefore funny that exporting these plots is such an issue in Windows. This post is all...

4778 sym R (2136 sym/20 pcs) 28 img 10 tbl

Exporting plain, lattice, or ggplot graphics

06.03.2013

A blend between a basic scatterplot, lattice scatterplot and a ggplot In a recent post I compared the Cairo packages with the base package for exporting graphs. Matt Neilson was kind enough to share in a comment that the Cairo library is now by default included in R, although you need to specify the type=”cairo” option to invoke it. In this p...

2922 sym R (3758 sym/18 pcs) 20 img 9 tbl