Yet Another One.. Animation with saveHTML / saveVideo from Package ANIMATION

October 12, 2011
By
Yet Another One.. Animation with saveHTML / saveVideo from Package ANIMATION

...some more playing with saveHTML, as.raster() and rasterImage(), producing a "flickering screen":Read more »

Read more »

Online

October 12, 2011
By
Online

Hello world, I decided to start blogging a bit to throw my weird R code examples at you ;-) Hope you’ll like it! Greetz, Janko

Read more »

R related books: Traditional vs online publishing

October 12, 2011
By
R related books: Traditional vs online publishing

How many R related books have been published so far? Who is the most popular publisher? How many other manuals, tutorials and books have been published online? Let's find out. A few years ago I used the publication list on r-project.org as an argument ...

Read more »

Model decision tree in R, score in Base SAS

October 11, 2011
By
Model decision tree in R, score in Base SAS

This code creates a decision tree model in R using party::ctree() and prepares the model for export it from R to Base SAS, so SAS can score new records. SAS Enterprise Miner and PMML are not required, and Base SAS … Continue reading →

Read more »

Le Monde puzzle [#743]

October 11, 2011
By
Le Monde puzzle [#743]

As Le Monde weekend has yet again changed its format (with so much more advertisements for luxurious items that I sometimes wonder whether or not this is the weekend edition of Le Monde!], it took me a while to locate the mathematical puzzle. The good news is there now is a science&techno leaflet with, at

Read more »

Where to find data to use with R

October 11, 2011
By

(Contributing blogger Joe Rickert has put together a fantastic list of data sources suitable for use with R. If you're looking for data to use in the Applications of R Contest -- entries close October 31 -- this is a great resource for you -- Ed.) Hardly a day goes by without someone or something reminding me that we...

Read more »

Setting plots side by side

October 11, 2011
By
Setting plots side by side

This is simple example code to display side-by-side lattice plots or ggplot2 plots, using the mtcars dataset that comes with any R installation. We will display a scatterplot of miles per US gallon (mpg) on car weight (wt) next to … Continue reading →

Read more »

R Bloggers widget in R Graph Gallery

October 11, 2011
By
R Bloggers widget in R Graph Gallery

Following last post about partnership with R Bloggers, Tal and I have added a small widget to the gallery main page to present links to recent posts on R Bloggers It uses the wordpress api to grab information about the rss feed generated by R Bl...

Read more »

The Work of the 1 Percent and the 0.1 Percent

October 10, 2011
By
The Work of the 1 Percent and the 0.1 Percent

The Occupy Wall Street movement chants "We are the 99 percent, you are the 1 percent." It's a catchy refrain, and there are many excellent reasons to put the focus on Wall Street in the struggle for economic and political justice in the US. But even singling out one percent of the US means we

Read more »

Top 50 Statistics blogs

October 10, 2011
By

TheBestColleges.org has just published their list of the "Top 50 Statistics Blogs of 2011", and I'm pleased say that not only did our own Revolutions blog make the list, but it's in fine company with some truly excellent blogs. Several of my personal favourites made the list, including: Guardian columnist Ben Goldacre's Bad Science blog The Dataists, a blog...

Read more »

Upgrading R (and packages)

October 10, 2011
By

I tend not to upgrade R very often—running from 6 months to 1 year behind in version numbers—because I had to reinstall all packages: a real pain. A quick search shows that people have managed to come up with good … Continue reading →

Read more »

An exercise in plyr and ggplot2 using triathlon results

October 10, 2011
By
An exercise in plyr and ggplot2 using triathlon results

I ran my last triathlon for this year a couple of weeks ago, in the beautiful town of Stratford-upon-Avon. The results were online the day after so I decided to have a look at my fellow competitors’ times, which gave … Continue reading →

Read more »

Artist view of crimes in London

October 10, 2011
By
Artist view of crimes in London

At first sight, one could think this picture is a scale model of some narrow moutains, like Bryce Canyon… Actually it represents crimes in East London, an cardboard artwork by the Londoner artist Abigail Reynolds, called Mount Fear.  Here is what can be read on the artist’s webpage: The terrain of Mount Fear is generated

Read more »

single-column data frame

October 10, 2011
By

This is a trivial but very useful tip:> x=data.frame(a=1:4, c=5)> x a c1 1 52 2 53 3 54 4 5> x a c1 1 5> x 1 2 3 4> x a1 12 23 34 4where you can see that:to avoid a become a vector, rather than a...

Read more »

k-mean clustering + heatmap

October 10, 2011
By

If you want more info about clustering, I have another post about "Clustering analysis and its implementation in R". Here is the link:  http://onetipperday.blogspot.com/2012/04/clustering-analysis-2.html------------Several R functions in this...

Read more »

Reading HTML pages in R for text processing

October 10, 2011
By

We were talking with one of my colleagues about doing some text analysis—that, by the way, I have never done before—for which the first issue is to get text in R. Not any text, but files that can be accessed … Continue reading →

Read more »

An R function to determine if you are a data scientist

October 10, 2011
By
An R function to determine if you are a data scientist

“Data scientist” is one of the buzzwords in the running for rebranding applied statistics mixed with some computing. David Champagne, over at Revolution Analytics, described the skills for being a data scientist with a Venn Diagram. Just for fun, ...

Read more »

Plot Animation with Imported Images

October 10, 2011
By
Plot Animation with Imported Images

...I really dig the animation package! ..so here's the outcome of my firsts encounters with saveHTML() - I produced an animation with pre-existing images by utilizing the functions readJPEG() and rasterImage() from the R-packages jpeg and ReadImage...

Read more »

How can you do a smart job getting data from internet?

October 9, 2011
By

I’d like to explore more the capabilities of my statistical packages to get data online and allocate it in memory instead of download each dataset by hand. After all, I found this task is pretty easy, but got me out of bed for one night trying to find the most efficient way to loop across

Read more »

The Skills of a Data Miner

October 9, 2011
By

Data mining is not only statistics, even if statistics is the most recognized academic component of it. It also includes data cleaning, machine learning and data visualization. The scarce factor is the ability to understand that data and extract value ...

Read more »

Equality of Covariances Matrices Test in R (varcomp)

October 9, 2011
By
Equality of Covariances Matrices Test in R (varcomp)

This is a piece of code I implemented in 2004, which was supposed to be part of an R-package in multivariate testing (to be named, rather creatively, mvttests). Time has flown, I haven’t still got around to implementing the said package, but people keep asking me for the varcomp function, so here it is, for

Read more »

understanding computational Bayesian statistics

October 9, 2011
By
understanding computational Bayesian statistics

I have just finished reading this book by Bill Bolstad (University of Waikato, New Zealand) which a previous ‘Og post pointed out when it appeared, shortly after our Introducing Monte Carlo Methods with R. My family commented that the cover was nicer than those of my own books, which is true. Before I launch into

Read more »

Sphericity Test for Covariance Matrices in R (sphericity.test)

October 9, 2011
By
Sphericity Test for Covariance Matrices in R (sphericity.test)

This is a piece of code I implemented in 2004, which was supposed to be part of an R-package in multivariate testing (to be named, rather creatively, mvttests). Time has flown, I haven’t still got around to implementing the said package, but people keep asking me for the sphericity.test function, so here it is, for

Read more »

Operating on datasets inside a function

October 9, 2011
By

There are times when we need to write a function that makes changes to a generic data frame that is passed as an argument. Let’s say, for example, that we want to write a function that converts to factor any … Continue reading →

Read more »

Open Street maps

October 8, 2011
By
Open Street maps

There have been some exciting developments in the Deducer ecosystem over the summer which should go into CRAN release in the next few months. Today I'm going to give a quick sneak peek at an Open Street Map - R connection with accompanying GUI. This post will just show the non-GUI components. The first part of the

Read more »

Performance difference between Stata and R

October 8, 2011
By

With respect to multinomial logit model, the performance difference between the two packages are quite large, based on this post.

Read more »

Some light data munging with R, with an application to ranking NFL Teams

October 8, 2011
By
Some light data munging with R, with an application to ranking NFL Teams

I recently submitted this blog to R-bloggers, which aggregates R-related blog posts. It's a fantastic site and has been invaluable to me as I've learned R. One of my favorite kinds of articles is the hands-on, "hello world"-style weekend project t...

Read more »

Visualizing GIS data with R and Open Street Map

October 8, 2011
By
Visualizing GIS data with R and Open Street Map

In this post I way to share with you some code to use Openstreetmap – maps as a backdrop for a data visualization. We will use the RgoogleMaps-package for R. In the following I will show you how to make this graph. 1. Download the map I wanted to take a closer look at an

Read more »

A brief idea of style

October 8, 2011
By

Once one starts writing more R code the need for consistency increases, as it facilitates managing larger projects and their maintenance. There are several style guides or suggestions for R; for example, Andrew Gelman’s, Hadley Wickham’s, Bioconductor’s and this one. … Continue reading →

Read more »