Blog Archives

Scraping Pro-Football Data and Interactive Charts using rCharts, ggplot2, and shiny

February 10, 2014
By

This post uses pro-football (American) boxscore data from 1966 through 2013 and generates few interactive charts using rCharts, ggplot2 and shiny.  It also provided a first time exposure to the power of dplyr. Data for these charts were scraped fr...

Read more »

Animated choropleths using animation, ggplot2, rCharts, googleVis and Shiny to visualize violent crime rates in different US States across 5 decades

January 17, 2014
By

This post uses animated choropleths to visualize violent crime rates in different US States across 5 decades (1961-2010). Data are retrieved from Quandl.  Animation of rCharts and googleVis based choropleths is done in the shiny server environment...

Read more »

Visualization of 2012 Crime Rates of Different States in the US using rCharts

December 14, 2013
By

In this post, I look at crime rates (per 100,000 people) in 2012 for different crimes in different states.  Data from FBI's Uniform Crime Reports site were used for this analysis. The methodology used by the FBI and the caveats associated wit...

Read more »

Replication of few graphs/charts in base R, ggplot2, and rCharts

November 7, 2013
By

In this post, I use a simulated dataset (7 variables -3 factor and 4 numeric - and a sample size of 50) to create graphs/charts using base R, and replicate them using ggplot2, and rCharts. This is not an attempt to create an exhaustive database of grap...

Read more »

Subsidies, Revenues, and Expenses of NCAA Division I Public Schools Athletic Departments – Visualizations using rCharts and animint generated interactive ggplots

October 18, 2013
By

Two interesting articles in recent issues of The Atlantic linked sports to tax-payer dollars. The first few lines of Gregg Easterbrook’s article, titled How the NFL Fleeces Taxpayers, were: “Taxpayers fund the stadiums, antitrust law doesn't apply to broadcast deals, the league enjoys nonprofit status, and Commissioner Roger Goodell makes $30 million a year. It's...

Read more »

Crime Against Women in India – Addressing 8 Questions Using rCharts, googleVis, and shiny

October 5, 2013
By

Recent crimes against women, specifically the 2012 gang rape in New Delhi of a 23 year old lady, have pushed this issue as a substantially significant one for Indians to deal with. In this post, I try to address 8 different questions regarding crime against women in India. (1). How have numbers in different types of crimes and percentage of different...

Read more »

Why use R for Data Analysis?

September 11, 2013
By

This was a presentation made to few of my colleagues. The idea was to provide a brief introduction to R, provide few reasons for my switching to it, and give some samples of graphics/interactive visualizations that could be created with minimal coding....

Read more »

Visualizing the Forbes-CCAP University Rankings using ggplot2, rCharts, googleVis, and the shiny server

August 27, 2013
By
Visualizing the Forbes-CCAP University Rankings using ggplot2, rCharts, googleVis, and the shiny server

President Obama is pushing for higher education reform and the development of a rating system for Universities is a critical component of it. These ratings are likely to be based on several measures, such as graduation rates, earnings of graduates, and...

Read more »

Short tales of two NCAA basketball conferences (Big 12 and West Coast) using graphs

August 12, 2013
By
Short tales of two NCAA basketball conferences (Big 12 and West Coast) using graphs

Having been at the University of Kansas (Kansas Jayhawks) as a student and now working at Gonzaga University (Gonzaga Bulldogs), discussions about college basketball are inescapable. This post uses R, ggmap, ggplot2 and the shiny server to graphically ...

Read more »

Lilac Bloomsday Run in Graphs

July 17, 2013
By
Lilac Bloomsday Run in Graphs

The Lilac Bloomsday Run is a 7.46 miles (12 kms) race held annually in Spokane, Washington. The run was started in 1977 by Don Kardong and it saw 51,613 people register for it in 2013. In this post, I use R to collect data from their website, clean and...

Read more »