Monthly Archives: August 2012

Manipulating Data Frames Using sqldf – A Brief Overview

August 8, 2012
By

By Josh MillsIntroductionFor those who are learning R and who may be well-versed in SQL, the sqldf package provides a mechanism to manipulate R data frames using SQL. Even for experienced R programmers, sqldf can be a useful tool for data manipulation. This site provides a useful introduction to SQL. The...

Read more »

Project Euler — problem 17

August 8, 2012
By

It has been two weeks since my last post on the 16th Euler problem. Now, since I just need a break after supper, I’m coming the 17th problem. If the numbers 1 to 5 are written out in words: one, … Continue reading →

Read more »

Creating Olympic Medal Treemap Visualisations Using OTS R Libraries

August 7, 2012
By
Creating Olympic Medal Treemap Visualisations Using OTS R Libraries

In London Olympics 2012 Medal Tables At A Glance? I posted some treemap visualisations of the Olympics medal tables generated using a Google Visualisation Chart treemap component. I thought it might be worth posting a quick R generated example too, using the off-the-shelf/straight out of CRAN treemap component. (If you want to play along, download

Read more »

An analysis of the r-help mailing list

August 7, 2012
By
An analysis of the r-help mailing list

Even though forums and question-and-answer services like StackOverflow are emerging as the place to find crowdsourced technical help when using software like R, the traditional r-help email list is still going strong. UCLA grad student and R user Richard Kwock presented a poster at last month's JSM conference with an analysis of traffic on the list, showing it's still...

Read more »

How to load the {rJava} package after the error “JAVA_HOME cannot be determined from the Registry”

August 7, 2012
By

In case you tried loading a package that depends on the {rJava} package (by Simon Urbanek), you might came across the following error: Loading required package: rJava library(rJava) Error : .onLoad failed in loadNamespace() for ‘rJava’, details: call: fun(libname, pkgname) …Read more »

Read more »

Customizing ggplot graphs

August 7, 2012
By

There are many things I love about the R package ggplot2. For the most part, they fall into two categories:The "grammar of graphics" approach builds a hierarchical relationship between the data and the graphic, which creates a consistent, int...

Read more »

48 Industries Since 1963

August 7, 2012
By
48 Industries Since 1963

Please see http://timelyportfolio.blogspot.com/search/label/horizonplot for all horizon plot posts. Once more thanks to Ken French for his data, we can accomplish something I think is fairly amazing.  In 640x800, we can see 250 day rollling return...

Read more »

August 6-7 Rainfall on Metro Manila

August 7, 2012
By
August 6-7 Rainfall on Metro Manila

Majority of Metro Manila is affected by floods. Looking at the hourly data from PAGASA weather  station located at Bicutan, Taguig, the graph below will gave the viewers of this blog on the rainfall situation in Manila from August 6 (12:00am)-7(11...

Read more »

R for Ecologists: Simulating Species-Area Curves (linear vs. nonlinear regression)

August 7, 2012
By
R for Ecologists: Simulating Species-Area Curves (linear vs. nonlinear regression)

This post is about basic model simulation so we can get a feel for how curves are supposed to look given certain processes assumed by the model. One of the most prevalent patterns in ecology is the species-area (SAR) curve, which … Continue reading →

Read more »

Unify R plots with pander

August 7, 2012
By
Unify R plots with pander

MotivationR has a great variety of plotting tools (just to mention a few: the base graphics and e.g. lattice and ggplot2 packages building on grid) and most R user has a preference for either of them.I think all of you would agree with me: each package...

Read more »