Monthly Archives: November 2012

Spatial Data visualization with R

November 27, 2012
By
Spatial Data visualization with R

I have published the first version of the code and main figures of the “Spatial Data” chapter of the forthcoming …Continuar leyendo »

Read more »

OpenScoring: Open Source Scoring of PMML Models via REST

November 27, 2012
By
OpenScoring: Open Source Scoring of PMML Models via REST

The other day I stumbled accross an amazing PMML model API called jpmml.  It's written in Java and supports PMML 4.1 (and older).  Neural networks, random forests, regression and trees PMML models can be consumed and used for scoring.I decide...

Read more »

How to: network animation with R and the iGraph package & Meaning in data viz

November 27, 2012
By
How to: network animation with R and the iGraph package & Meaning in data viz

This article lists the steps I take to create a network animation in R, provides some example source code that you can copy and modify for your own work, and starts a discussion about programming and visualization as an interpretive approach in research. Before I start, take a look at this network animation created with

Read more »

Triples, stores, and SPARQL in R

November 27, 2012
By

For some time I have been stealing an hour here and there for the rrdf package for R. This package is based on Apache Jena and allows reading and writing of RDF triples, as well as doing local and remote SPARQL querying. BTW, rrdf is not only R pa...

Read more »

Creating PDFs and websites with the "knitr" package

November 27, 2012
By

Just a fast note: I came across the R-package "knitr" which enables you to generate PDF files by mixing LaTeX and R code in one document. The result looks very nice and is great to create documentations, manuals and so on. I find knitr much easier to u...

Read more »

"Dominant" Color Palettes with k-means

November 27, 2012
By
"Dominant" Color Palettes with k-means

The idea of deriving color palettes from images has long been an interest of mine. There are places you can do this online, but it’s at least plausible that you might want to identify dominant colors programatically, for a large number of image...

Read more »

Exporting data from R into WinBUGS’s “R/S-plus list format”

November 27, 2012
By
Exporting data from R into WinBUGS’s “R/S-plus list format”

Users of the world’s favourite Bayesian analysis software WinBUGS will recognise the strange format in which data is supplied inside the GUI, generally in a text file looking something like this: list(x=c(1,2,3,4,5,6),y=c(4,8,2,6,9,9)) This is of course an R (or strictly … Continue reading →

Read more »

Fifty Shades of Grey in R

November 27, 2012
By
Fifty Shades of Grey in R

My wife went out to her book group tonight and their book of the month was 50 Shades of Grey. Sadly, I could think of is that plotting 50 shades in R would be a neat exercise. require(ggplot2) grey50 <- data.frame( x = rep(1:10, 5), y = rep(1:5, ...

Read more »

Data.table rocks! Data manipulation the fast way in R

November 27, 2012
By
Data.table rocks! Data manipulation the fast way in R

I really should make it a habit of using data.table. The speed and simplicity of this R package are astonishing. Here is a simple example: I have a data frame showing incremental claims development by line of business and origin year. Now I would like add a column with the cumulative claims position for each line of...

Read more »

2012-10 Introducing the ‘selectr’ Package

November 26, 2012
By

The selectr package translates a CSS selector into an equivalent XPath expression. This allows the use of CSS selectors to query XML documents using the XML package. Convenience functions are also provided to mimic functionality present in modern web browsers. … Continue reading →

Read more »