Monthly Archives: May 2012

The aesthetics of error bars

May 27, 2012
By
The aesthetics of error bars

This blog and my other main blog (the companion blog for my book) are now syndicated via R-bloggers (posts tagged R only) and statsblogs.com. The latter is a relatively new blog aggregator but looks to have some interesting content. R-bloggers it quite...

Read more »

Ben Schmid took ship’s log data (previously visualized in…

May 27, 2012
By
Ben Schmid took ship’s log data (previously visualized in…

Ben Schmid took ship’s log data (previously visualized in static form on the the Spatial Analysis blog), and used ggplot and ffmpeg to animate the paths of individual voyages from 1750-1850. The images above come from the animation that combines all ...

Read more »

Project Euler — problem 3

May 27, 2012
By

The third problem: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? My solvement is straightforward: firstly to identify all the prime numbers between 2 and sqrt(n); secondly … Continue reading →

Read more »

Tweets Analysis about Himpuan Jutaan Belia PutraJaya (Malaysia Youth Day 2012)

May 27, 2012
By
Tweets Analysis about Himpuan Jutaan Belia PutraJaya (Malaysia Youth Day 2012)

I’m using the Twitter Listening Robot to know what people is talking Najib Razak, Malaysia Prime Minister. Apparently,  23-27 are the Malaysia Youth Day 2012.  There were many funny retweets (more than 50 times) by the public: RT @Faizrawrr: Be...

Read more »

Updating to R 2.15, warnings in R and an updated function list for Serious Stats

May 27, 2012
By
Updating to R 2.15, warnings in R and an updated function list for Serious Stats

Whilst writing the book  the latest version of R changed several times. Although I started on an earlier version, the bulk of the book was written with 2.11 and it was finished under R 2.12. The final version of the R scripts were therefore run and checked using R 2.12 and, in the main, the most recent

Read more »

PLoS computational biology meets wikipedia

May 26, 2012
By
PLoS computational biology meets wikipedia

Robin Ryder pointed out to me this new experiment run by PLoS since March 2012, namely the introduction of a new article type, “called “Topic Pages” and written in the style of a Wikipedia article“. Not only this terrific idea gives more credence to Wikipedia biology pages, at least in their early stage, but also

Read more »

Cross-valitation variability example, part I

May 26, 2012
By
Cross-valitation variability example, part I

Recently I had a discussion with a student about variability of results obtained from cross-validation procedure. While the subject is well known there are not many examples on the web showing it, so I have written its simple presentation.Results from ...

Read more »

Automating repetitive plot elements

May 26, 2012
By
Automating repetitive plot elements

The syntax of ggplot2 emphasizes constructing plots by adding components, or layers, using +.Possibly one of the most useful, but least remarked upon, consequences of this syntax is that it allows for an incredible degree of flexibility in saving and...

Read more »

MathJax Syntax Change

May 25, 2012
By
MathJax Syntax Change

We’ve just a made a change to the syntax for embedding MathJax equations in R Markdown documents. The change was made to eliminate some parsing ambiguities and to support future extensibility to additional formats. The revised syntax adds a “latex” qualifier to the $ or $$ equation begin delimiter. It looks like this: This change

Read more »

Sending a Text in R

May 25, 2012
By
Sending a Text in R

Don't you hate it when you are running a long piece of code and you keep checking the results every 15 minutes, hoping it will finish? There is a better way.I got the idea from here. He uses a Python script and the text interface is not free. I thought...

Read more »