4046 search results for "git"

Get the exit polls from CNN using R and Python

November 17, 2012
By

Yesterday I posted an example of plotting 2012 U.S. presidential exit poll results using ggplot2. There I took for granted that a data.frame containing all we need resides in a file called "PresExitPolls2012.Rdata". Today I want to show how I scraped t...

Read more »

Visualizing Missing Data

November 17, 2012
By
Visualizing Missing Data

There are several graphics available for visualizing missing data including the VIM package. However, I wanted a plot specifically for looking at the nature of missingness across variables and a clustering variable of interest to support data preparati...

Read more »

Visualizing Missing Data

November 17, 2012
By
Visualizing Missing Data

There are several graphics available for visualizing missing data including the VIM package. However, I wanted a plot specifically for looking at the nature of missingness across variables and a clustering variable of interest to support data preparati...

Read more »

The Race to the F1 2012 Drivers’ Championship – Initial Sketches

November 16, 2012
By
The Race to the F1 2012 Drivers’ Championship – Initial Sketches

In part inspired by the chart described in The electoral map sans the map, I thought I’d start mulling over a quick sketch showing the race to the 2012 Formula One Drivers’ Championship. The chart needs to show tension somehow, so in this first really quick and simple rough sketch, you really do have to

Read more »

Making sense of random effects

November 16, 2012
By
Making sense of random effects

The other night in my office I got into a discussion with my office mate, the brilliant scientist / amazing skier Dr. Thor Veen about how to understand the random effect variance term in a mixed-effects model. Thor teaches the R statistics course here at UBC, and last night a student came to the office...

Read more »

Simulating Sudden Oak Death Dynamics

November 16, 2012
By
Simulating Sudden Oak Death Dynamics

I am working on a project with the Rizzo Lab examining the dynamics of Sudden Oak Death (SOD). I really have to write more about this, but today I’m just going to post the results of an initial exercise. Here I attempt to replicate model results from Cobb et al. (2012). The model in that paper simulates...

Read more »

Hjust and Vjust

November 16, 2012
By
Hjust and Vjust

So, when you’re setting the position of text in ggplot, you may have to use the hjust and vjust commands. Depending on your demands, and if you don’t understand what they’re doing, they might seem hard to use. I found one script that...

Read more »

What does R do? Bring people together, of course!

November 15, 2012
By
What does R do? Bring people together, of course!

Last night we had a great meet up of the Montreal R User Group. I got things started with a little presentation asking the question “What does R do?” (slides). I made the presentation using Montreal R User Group member Ramnath Vaidyanathan‘s Slidify package. Slidify allows you to generate rather handsome HTML5 slides directly using

Read more »

Bottom-up creation of data-driven capabilities: automate your work

November 15, 2012
By

My previous post on how to transform an organization into a more data-driven version of itself made a pretty big assumption that often doesn’t hold true. I assumed that people in the organization wanted their company or agency to become more data-driven. I think almost everyone says they want that if asked. I even think

Read more »

Create elegant, interactive presentations from R with Slidify

November 15, 2012
By
Create elegant, interactive presentations from R with Slidify

If you often find yourself cutting-and-pasting charts or tables generated in R into PowerPoint or Keynote, you might want to take a look at Slidify. Created by R user Ramnath Vaidyanathan, Slidify is an R package that allows you to use R Markdown to define the slide content and automatically embed R output. This is especially useful if the...

Read more »