Blog Archives

The forestplot of dreams

December 8, 2013
By
The forestplot of dreams

Displaying large regression models without overwhelming the reader can be challenging. I believe that forestplots are amazingly well suited for this. The plot gives a quick understanding of the estimates position in comparison to other estimates, while also showcasing the uncertainty. This project started with some minor tweaks to prof. Thomas Lumleys forestplot and ended up in a...

Read more »

Too crude to be true?

October 8, 2013
By
Too crude to be true?

The key to programming is being lazy; it has actually been called a virtue by some. When I discovered the update() function it blew me away. Within short I had created a monster based upon this tiny function, allowing quick and easy output of regression tables that contain crude and adjusted estimates. In this post I’ll show...

Read more »

Visualizing transitions with the transitionPlot function

June 19, 2013
By
Visualizing transitions with the transitionPlot function

A transition between states - the above is a simulation of before and after surgery where I've highlighted the large proportion that...

Read more »

Getting to the point – an alternative to the bezier arrow

May 21, 2013
By
Getting to the point – an alternative to the bezier arrow

An alternative bezier arrow to the regular grid-bezier. Apart from a cool gradient it has the advantages of: exact width, exact start/end points and axis...

Read more »

Using the SVD to find the needle in the haystack

April 19, 2013
By
Using the SVD to find the needle in the haystack

Sitting with a data set with too many variables? The SVD can be a valuable...

Read more »

Exporting plain, lattice, or ggplot graphics

March 6, 2013
By
Exporting plain, lattice, or ggplot graphics

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...

Read more »

Exporting nice plots in R

February 25, 2013
By
Exporting nice plots in R

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...

Read more »

Tables from R into Word

February 5, 2013
By
Tables from R into Word

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...

Read more »

Chocolate and nobel prize – a true story?

December 22, 2012
By
Chocolate and nobel prize – a true story?

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...

Read more »

Personal CRAN-repository

November 24, 2012
By
Personal CRAN-repository

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...

Read more »