143 search results for "iris"

Plotting data and distribution simultaneously (with ggplot2)

May 14, 2012
By
Plotting data and distribution simultaneously (with ggplot2)

Ever wanted to see at a glance the distribution of your data across different axes? It happens often to me, and R allows to build a nice plot composition - This is my latest concoction. I used ggplot2 here, but equivalent graphics can be made...

Read more »

Porting cdplot to ggplot2

May 11, 2012
By
Porting cdplot to ggplot2

Last week I published a post on plotting tables in ggplot2. So the next natural step is to port cdplot to allow simple visualization of categorical variables against a numerical predictor.First part of the story covers binary variables. In th...

Read more »

playitbyr 0.2-1: data through sound, now with layers, facets, and more pleasure

May 6, 2012
By

The recent Sonification Handbook has a chapter devoted to exploratory data analysis using sound. With some help from Sam Ferguson, one of the chapter's authors, I've made it easy to implement those techniques using R with playitbyr.

Read more »

Reproducible Research: Export Regression Table to MS Word

April 20, 2012
By
Reproducible Research: Export Regression Table to MS Word

Here's a quick tip for anyone wishing to export results, say a regression table, from R to MS Word:require(R2wd)# install packages required# install software RCOM, RDCOMClient # (I had to restart the R-Session after the above step to get it work)wdGet(...

Read more »

Use file.choose to customize output filenames in R functions

April 5, 2012
By

In this post, I want to address the following issue: several data files with a common trame have to be dealt with by an R function. The function should export files (such as images or data files or any other file type). I explain how to create filenames such that the function automatically exports files in the same directory...

Read more »

Web-Scraping in R

April 2, 2012
By
Web-Scraping in R

Web-scraping, or web-crawling, sounds like a seedy activity worthy of an Interpol investigative department. The reality, however, is far less nefarious. Web-scraping is any procedure by which someone extracts data from the internet. Given that it’s possible to get the internet on computers these days; web-scrapping opens an array of interesting possibilities to social-science researchers

Read more »

ggplot2 0.9.0 released

March 4, 2012
By

This announcement was made by Hadley Wickham in the mailing list. ———————- # ggplot2 ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and avoid bad parts. It takes care of many of the fiddly details that make plotting a hassle (like drawing legends)...

Read more »

ABC in Roma [R lab #1]

February 29, 2012
By
ABC in Roma [R lab #1]

Here are the R codes of the R labs organised by Serena Arima in supplement of my lectures. This is quite impressive and helpful to the students, as illustrated by the first example below (using the abc software). I am having a great time teaching this “ABC in Roma” course, in particular because of the

Read more »

Taking a Ride on the Wild Function – Introducing the dostats package

February 20, 2012
By

Lately I have been rather productive in my programming and frustrated at the same time. Trying to solve the problems of creating a demographics summary table proved to be a lesson in frustration with R. Since I love R, this was disheartening. I did eventually find the reporttools package which does make a great latex

Read more »

Monitoring Progress Inside a Foreach Loop

February 9, 2012
By

The foreach package for R is excellent, and allows for code to easily be run in parallel. One problem with foreach is that it creates new RScript instances for each iteration of the loop, which prevents status messages from being logged to the console output. This is particularly frustrating during long-running tasks, when we are often unsure...

Read more »