Monthly Archives: July 2013

rCharts version of d3 horizon

July 10, 2013
By
rCharts version of d3 horizon

I love horizon plots.  My love shows up throughout my blog, and I have plotted horizon charts in base graphics, xtsExtra, lattice, and ggplot2.  Now with rCharts, we can implement Jason Davies d3.js horizon chart plugin to plot R data in...

Read more »

Parallel Random Number Generation using TRNG

July 10, 2013
By
Parallel Random Number Generation using TRNG

To my surprise and disappointment, popular scientific libraries like Boost or GSL provide no native support for parallel random number generation. Recently I came across TRNG, an excellent random number generation library for C++ built specifically with parallel architectures in mind. Over the last few days I’ve been trawling internet forums and reading discussions about The post Parallel...

Read more »

Please send all comments to /dev/ripley

July 10, 2013
By
Please send all comments to /dev/ripley

Trey Causey asks, Has R-help gotten meaner over time?: I began by using Scrapy to download all the e-mails sent to R-help between April 1997 (the earliest available archive) and December 2012. . . . We each read 500 messages and coded them in the following categories: -2 Negative and unhelpful -1 Negative but helpful The post Please...

Read more »

Types in lambda.r versus classes in S4

July 10, 2013
By
Types in lambda.r versus classes in S4

Here’s a quick example of the power of lambda.r and how it simplifies the programming model. On the r-devel mailing …Continue reading »

Read more »

UK dialect maps

July 10, 2013
By
UK dialect maps

A few weeks ago Joshua Katz published some awesome dialect maps of the United States with the help of a web interface coded with Shiny. Now we propose a similar setup for the UK data based on our rapporter.net "R-as-a-Service" with some further add-ons, like regional comparison and dynamic textual analysis of the differences: You may...

Read more »

Flotsam 13: early July links

July 9, 2013
By

Man flu kept me at home today, so I decided to do something ‘useful’ and go for a linkathon: Ed Yong discusses the effect of subject expectations in psychology experiments Nice Results, But What Did You Expect? At the beginning there was another article on The placebo phenomenon, and another one on The placebo defect.

Read more »

2013-7 Advanced SVG Graphics from R

July 9, 2013
By

The gridSVG package has recently provided an interface for some more advanced SVG graphics features: gradient fills and pattern fills, clipping paths, masks, and filters. This report describes a simple test case for some of these advanced graphics features and … Continue reading →

Read more »

A Sudoku Puzzle Solver – attempt 1

July 9, 2013
By
A Sudoku Puzzle Solver – attempt 1

I have programmed up a R based Sudoku problem solver for Sudoku puzzles of that only require simple inference.  In these puzzles a solution can be found using only first order inference.  This solver can be found at the end of the code locate...

Read more »

%in%

July 9, 2013
By

I just stumbled across a really useful infix function in R: %in%. It compares two vectors and returs a logical vector if there is a match or not for its left operand. Let us look at some examples: > 1:10 %in% c(1,3,5,9) TRUE FALSE TRUE...

Read more »

user2013: The caret tutorial

July 9, 2013
By
user2013: The caret tutorial

This afternoon I went to Max Kuhn’s tutorial on his caret package. caret stands for classification and regression (something beginning with e) trees. It provides a consistent interface to nearly 150 different models in R, in much the same way as the plyr package provides a consistent interface to the apply functions. The basic usage

Read more »