Blog Archives

Alternative implementations using ggplot2

March 25, 2009
By
Alternative implementations using ggplot2

Here and here, you can find alternative implementations of two plots  (1, 2) I created time ago using R basic graphic. The author recreates the plots taking advantage of the excellent ggplot2 package.

Read more »

no “Infinities”

March 12, 2009
By
no “Infinities”

Thanks to  Pierre-Yves for the below useful tip!if you have a dataset from which you want the max or min but they have to be real number and not "Inf" or "-Inf" there is a way to do it:data <- c(-Inf, 1,2,3,4,5,6,7,8,9,10, Inf)max(data)# Return...

Read more »

Dealing with missing values

March 8, 2009
By
Dealing with missing values

Two new quick tips from 'almost regular' contributor Jason: Handling missing values in R can be tricky. Let's say you have a table with missing values you'd like to read from disk. Reading in the table with, read.table( fileName ) might fail. If ...

Read more »

Interesting tip about multicolor title of a plot

January 23, 2009
By
Interesting tip about multicolor title of a plot

I'd like to suggest to take a look at this interesting post about creating a title with multi-coloured words.

Read more »