Articles by John Johnson

How we voted in South Carolina

August 3, 2017 | John Johnson

Purpose This post seeks to explore how Greenville, SC and surrounding areas voted in the 2016 election. It also demonstrates how to retrieve data from the Data.World site. To retrieve data from this site using the tools in this post, you have to create an account (easy to do if ...
[Read more...]

How to make maps with Census data in R

July 20, 2017 | John Johnson

US Census Data The US Census collects a number of demographic measures and publishes aggregate data through its website. There are several ways to use Census data in R, from the Census API to the USCensus2010 package. If you are interested in geopolitical data in the US, I recommend exploring ...
[Read more...]

Personal data collection and analysis

April 16, 2017 | John Johnson

Motivation behind this example I was diagnosed with sleep apnea last year, and have to use a continuous positive airway pressure (CPAP) machine to sleep well enough to feel alert during the day. The machine uploads data (via cellular connection) to a website that will give me results for the ...
[Read more...]

Inauguration speeches

January 27, 2017 | John Johnson

Acquiring inauguration speeches Though not about Greenville especially, it might be interesting to quantitatively analyze inauguration speeches. This analysis will be done using two paradigms: the tm package and the tidytext package. We will read the speeches in such a way that we use the tidytext package; later on we ...
[Read more...]

Greenville on Twitter

December 20, 2016 | John Johnson

In this blogpost, we use R to use Twitter data to analyze topics of interest to Greenville, SC. We will describe obtaining, manipulating, and summarizing the data. Twitter is a “microblogging” service where users can, usually publicly, share links, pictures, or short comments (up to 140 characters) onto a timeline. The ...
[Read more...]

Plotting GeoJSON polygons on a map with R

December 15, 2016 | John Johnson

In a previous post we plotted some points, retrieved from a public dataset in GeoJSON format, on top of a Google Map of the area surrounding Greenville, SC. In this post we plot some public data in GeoJSON format as well, but instead of particular points, we plot polygons. Polygons ... [Read more...]

I set up a new data analysis blog

December 11, 2016 | John Johnson

Well, I tried to write a blog post using the RStudio Rmarkdown system, and utterly failed. Thus, I set up a system where I could write from RStudio. So I set up a Github pages blog at randomjohn.github.io. There I can easily write and publish posts involving data ... [Read more...]

Plotting GeoJSON data on a map with R

December 10, 2016 | John Johnson

GeoJSON is a standard text-based data format for encoding geographical information, which relies on the JSON (Javascript object notation) standard. There are a number of public datasets for Greenville, SC that use this format, and, the R programming language makes working with these data easy. Install the rgeojson library, which ... [Read more...]

Which countries have Regrexit?

June 26, 2016 | John Johnson

This doesn't have a lot to do with bio part of biostatistics, but is an interesting data analysis that I just started. In the wake of the Brexit vote, there is a petition for a redo. The data for the petition is here, in JSON format.Fortunately, in R, ...
[Read more...]

Which countries have Regrexit?

June 26, 2016 | John Johnson

This doesn't have a lot to do with bio part of biostatistics, but is an interesting data analysis that I just started. In the wake of the Brexit vote, there is a petition for a redo. The data for the petition is here, in JSON format.Fortunately, in R, ...
[Read more...]

Talk to Upstate Data Science Group on Caret

January 14, 2016 | John Johnson

Last night I gave an introduction and demo of the caret R package to the Upstate Data Science group, meeting at Furman University. It was fairly well attended (around 20 people), and well received.It was great to get out of my own comfort zone a bit (since graduate school, I've ... [Read more...]
1 2

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)