Publications by Paolo

Interesting tip about multicolor title of a plot

23.01.2009

I’d like to suggest to take a look at this interesting post about creating a title with multi-coloured words. Related To leave a comment for the author, please follow the link and comment on their blog: One R Tip A Day. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. ...

519 sym 4 img

Dealing with missing values

08.03.2009

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 your table is properly formatted, then R can determine what’s a missing va...

1515 sym 4 img

no “Infinities”

12.03.2009

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 Inf min(data) # Return -Inf # To solve the problem I went to: range(data, finite...

843 sym 4 img

Alternative implementations using ggplot2

25.03.2009

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. Related To leave a comment for the author, please follow the link and comment on their blog: One R Tip A Day. R-bloggers.com offers daily e-ma...

598 sym 4 img

Multiple plot in a single image using ImageMagick

31.03.2009

Sometimes you need to add several plots/images either by row or by column to a single page/sheet.If you generate all your plot with R base graphics you can easily accomplished the task using the par() function, e.g., using par(mfrow=c(2,2)) and then drawing 4 plots of your choice.However, if you need to create a single image build up ...

1962 sym 4 img

R 2.9.0 is Out!

21.04.2009

The new R 2.9.0 is out! Get it here. If you like take a look at these posts for some miscellaneous advices to make the upgrade easier. Related To leave a comment for the author, please follow the link and comment on their blog: One R Tip A Day. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R ...

544 sym 4 img

Colors in the R terminal

24.04.2009

Today, I’d like to suggest a new R package that you can download from here. Still in its early development, the xterm256 package allows to print text in the R terminal using different colours. You can find more information here. The picture below depicts a basic example of its use. Related To leave a comment for the author, please...

693 sym 6 img

Tips from the R-help list : shadow text in a plot and bumps charts

28.04.2009

Stumbling across the R-help mailing-list I found, as often happens,  two threads in the spirit of this blog (of course, since they come from the list, the quality is higher): here you can find a function allowing  a shadow outline style for a text in a plot. From here you can follow an interesting thread depicting how to produce bum...

759 sym 4 img

screen in ubuntu 9.04

29.04.2009

As I told in a previous post, I consider the unix tool screen essential for my work. It seems that the just released Ubuntu 9.04  contains a package that make it easier to configure and use. You can find the full story here. Related To leave a comment for the author, please follow the link and comment on their blog: One R Tip A Da...

634 sym 4 img

Searching through mailing list archives

08.05.2009

Romain Francois on his blog posted a very useful function to search through the R mailing list archives. Take a look at it here. Take also a look at the tm package introduced in  R News, 8(2):19–22, Oct. 2008 with an example dealing with analysis of the R-help mailing list. Related To leave a comment for the author, please follow...

684 sym 4 img