Posts Tagged ‘ ggplot2 ’

Shape File Selfies in ggplot2

April 12, 2014
By
Shape File Selfies in ggplot2

In this post you will learn how to: Create your own quasi-shape file Plot your homemade quasi-shape file in ggplot2 Add an external svg/ps graphic to a plot Change a grid grob's color and alpha *Note get simple .md version … Continue reading →

Read more »

Take a look, it’s in a book: distribution of kindle e-book highlights

April 10, 2014
By
Take a look, it’s in a book: distribution of kindle e-book highlights

If you've ever started a book and not finished it, it may comfort you to know that you are not alone. It's hard to get accurate estimates of the percentage books that are discontinued, but the rise of e-reading (and resulting circumvention of privacy) affords us the opportunity to answer related questions. The kindle e-reading »more

Read more »

Kaplan-Meier plots using ggplots2 (updated)

April 2, 2014
By
Kaplan-Meier plots using ggplots2 (updated)

About 3 years ago I published some code on this blog to draw a Kaplan-Meier plot using ggplot2. Since then, ggplot2 has been updated (from 0.8.9 to 0.9.3.1) and has changed syntactically. Since that post, I have also become comfortable with Git and Github. I have updated the code, edited it for a small error, […]

Read more »

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 »

Sochi Olympic Medals

February 9, 2014
By
Sochi Olympic Medals

For those who are addicted to R and haven’t the time to click the mouse on a web browser you too can still be informed about the results of the 2014 Sochi Winter Olympics. I was inspired by a SO … Continue reading →

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 »

The Extra Step: Graphs for Communication versus Exploration

January 12, 2014
By
The Extra Step: Graphs for Communication versus Exploration

Visualization is a useful tool for data exploration and statistical analysis, and it’s an important method for communicating your discoveries to others. While those two uses of visualization are related, they aren’t identical. One of the reasons that I like ggplot so much is that it excels at layering together multiple views and summaries of […] Related posts: Revisiting Cleveland’s The Elements of Graphing Data in ggplot2 My Favorite Graphs…

Read more »

Sentence Drawing: Part II

December 24, 2013
By
Sentence Drawing: Part II

In a recent blog post I introduced Stefanie Posavec‘s Sentence Drawings. We created this ggplot2 rendition: We left off weighing the aesthetics of the Sentence Drawing with information of quality visualizations. I asked others to think of ways to display … Continue reading →

Read more »

Sentence Drawing: Function vs. Art

December 8, 2013
By
Sentence Drawing: Function vs. Art

I recently was reading the book “Functional Art” and came across the work of Stefanie Posavec. Her Sentence Drawings (click here to see and click here to learn) caught my attention. Here is a ggplot2 rendition: From what I understand … Continue reading →

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 »


Subscribe

Email:

  Subscribe