Articles by Cory Nissen

Creating Styled Google Maps in ggmap

May 27, 2015 | Cory Nissen

In R, my go to package for creating maps is ggmap. Using this, one can create maps using a variety of services, including Google maps. I just recently discovered the ability to create a styled version of a Google map. Let's go through this process to create a black and ... [Read more...]

R Package to Download Fitbit Data

January 22, 2015 | Cory Nissen

Fitbit is a device that tracks your daily activity. It's basically a pedometer, but it does a little more. It has an altimeter, so it can count flight of stairs climbed. It can detect your sleeping activity and give you a read on how often you are tossing and turning. ... [Read more...]

Using rvest to Scrape an HTML Table

January 8, 2015 | Cory Nissen

I recently had the need to scrape a table from wikipedia. Normally, I'd probably cut and paste it into a spreadsheet, but I figured I'd give Hadley's rvest package a go. The first thing I needed to do was browse to the desired page and locate the table. In this ... [Read more...]

geocodeHERE 0.1 is on CRAN

November 6, 2014 | Cory Nissen

In my previous blog post, I detailed how I created my first R package called geocodeHERE. This package is a convenient wrapper for Nokia's HERE geocoding API. The cool thing about this API is that it allows for bulk geocoding. So, instead of doing n API calls to geocode n ... [Read more...]

Making an R Package to use the HERE geocode API

October 23, 2014 | Cory Nissen

HERE is a product by Nokia, formerly called Nokia maps and before that, Ovi maps. It's the result of the acquisition of NAVTEQ in 2007 combined with Plazes and Metacarta, among others. It has a geocoding API, mapping tiles, routing services, and other things. I'm focused on the geocoding service. Under ... [Read more...]

Visualizing Bus Stops with rCharts

June 11, 2014 | Cory Nissen

I wanted to create a quick visualization of Bloomington IL bus stops. This data is in pdf file format spread across multiple files. The first step, before any mapping can occur, is downloading those files, parsing them to get the bus stop locations and... [Read more...]

Finding Named Entities using R

February 11, 2014 | Cory Nissen

Occasionally, I'll need to pick out names (first name, last name) from text. These days, the text I'm working with is usually tweets. Any how, I didn't see any solution out there (that worked for me) when I developed this, so hopefully it can be a star... [Read more...]

Graphing my MPG vs Temperature

December 9, 2013 | Cory Nissen

I use Fuelly to track the fuel mileage in my Toyota Tundra pickup truck. They have a mobile app, so while I'm waiting for the truck to fill up, I log the odometer, and the number of gallons that I put in and then also the price per gallon of ...
[Read more...]

Mapping Foodborne Chicago Reports

November 25, 2013 | Cory Nissen

I help out with a project called Foodborne Chicago, where we search twitter for people in Chicago mentioning "food poisoning" and @reply to them with a link where they can file a report with the city of Chicago's Department of Public Health. The applic...
[Read more...]

Google Prediction API example

June 13, 2013 | Cory Nissen

Google's prediction API offers a blackbox way of doing some prediction. They had advertised an R package, but it doesn't seem to work with the new version of the prediction API or their OAuth2 authentication mechanism. So, in an effort to check out the... [Read more...]

3D Model Using the rgl Package

April 25, 2013 | Cory Nissen

A while back, I had a unique opportunity to work with some very talented interns for the summer while I was working at Allstate insurance. Without giving away details of the project that Allstate may prefer to keep secret, let's just say that we had ac...
[Read more...]

ggplot dodged vs faceted bar chart

April 17, 2013 | Cory Nissen

I've been bowling once per year at a charity event for the last few years and have kept track of the outcomes to share my group. I used ggplot2 to create a bar chart for the scores. Below are two graphs, one is dodged, the other is faceted. There's no ...
[Read more...]

Unshorten URLs in R

April 15, 2013 | Cory Nissen

Well, of course, this tip comes out one week after I needed it. The author uses the RCurl package to request the header of the shortened URL and then parse the "location" parameter on the return. This sort of operation tends to be needed frequently, es... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)