1980 search results for "ggplot"

type=”n” graphs in R

February 24, 2011
By
type=”n” graphs in R

type n graph.R Download this file One of the most useful graphs you can produce in R using the plot(...) function is one with nothing in it. Using the type="n" option, you get a blank canvas to which you can add points, lines, text, sh...

Read more »

Machine Learning Ex2 – linear regression

February 24, 2011
By
Machine Learning Ex2 – linear regression

Andrew Ng has posted introductory machine learning lessons on the OpenClassRoom site. I've watched the first set and will here solve Exercise 2. The exercise is to build a linear regression implementation, I'll use R. The point of linear regression is to come up with a mathematical function(model) that represents the data as best as possible, that is done...

Read more »

Thor vs. Uncanny X-Men vs. Fantastic Four

February 21, 2011
By
Thor vs. Uncanny X-Men vs. Fantastic Four

Three of Marvel’s longest running comic book series’ are Thor, Uncanny X-Men, and Fantastic Four. Using data from 2010, I compare monthly comic book sales for each series. This data only pertains to monthly issues and not trade paperbacks. Furthermore, the series Amazing Spider Man was not considered because it was released twice a month.

Read more »

Choropleth tutorial and regression coefficient plots

February 21, 2011
By
Choropleth tutorial and regression coefficient plots

About two weeks ago, I gave short talk at Duke, wherein I presented a brief tutorial on creating choropleth maps in R using ggplot2. Since the code is already written, and the data and shapefiles already hosted online, I thought I would share the tutorial more widely. A .ZIP file containing all the files necessary … Continue reading →

Read more »

Tracking the Frequency of Twitter Hashtags with R

February 21, 2011
By
Tracking the Frequency of Twitter Hashtags with R

 I’ve posted three examples of Twitter hashtags datasets in the last week: one on China, one on Iran, and one on Algeria.  In order to build these datasets, I needed to obtain older tweets; this is slightly more difficult than … Continue reading →

Read more »

Book Review: R Graphs Cookbook

February 17, 2011
By
Book Review: R Graphs Cookbook

Book InformationMittal, H. (2011). R graphs cookbook. Birmingham, UK: Packt Publishing Ltd.AudienceThe book's stated audience is anyone who is familiar with the basics of R, as well as expert users who are looking for a graphical reference. However, it...

Read more »

Book Review: R Graphs Cookbook

February 17, 2011
By
Book Review: R Graphs Cookbook

Book InformationMittal, H. (2011). R graphs cookbook. Birmingham, UK: Packt Publishing Ltd.AudienceThe book's stated audience is anyone who is familiar with the basics of R, as well as expert users who are looking for a graphical reference. However, it...

Read more »

Regional Variation in Law Enforcement Deaths – Part B

February 16, 2011
By
Regional Variation in Law Enforcement Deaths – Part B

I would like to thank Tal Galili for establishing and maintaining the blog aggregator at R-bloggers. This site has been added to their directory and new posts which are tagged with R will now appear on their feed. http://www.r-bloggers.com/ In part a, I presented a series of barplots which showed that the plurality of police

Read more »

The Egyptian Revolution, in tweets

February 16, 2011
By
The Egyptian Revolution, in tweets

Twitter played a significant role in the recent uprising in Egypt, with protesters communicating via tweets marked with the #25bahman hastag (February 14 in the arabic calendar) to plan and rally for the demonstration. Michael Bommarito downloaded all such tweets and plotted their frequency over time using R's ggplot2 library: Not surprisingly, the activity peaked on February 14. The...

Read more »

Mapping London’s Population Change 1801-2030

February 16, 2011
By
Mapping London’s Population Change 1801-2030

Buried in the London Datastore are the population estimates for each of the London Boroughs between 2001 – 2030. They predict a declining population for most boroughs with the exception of a few to the east. I was surprised by this general decline and also the numbers involved- I expected larger changes from one year to ...

Read more »