Blog Archives

Who named their kid Daenerys or Khaleesi?

May 13, 2019
By
Who named their kid Daenerys or Khaleesi?

The Game of Thrones character, Daenerys Targaryen, suffered a hit to her reputation in the final season of the much-watched HBO series. For the past few years, she has been a crowd favorite--combining brave determination, style, and dragon(s). Many people went a step further in their admiration and named their offspring after her. Below are a couple of charts...

Read more »

Why are Racing Drivers Born on March 23

August 31, 2017
By
Why are Racing Drivers Born on March 23

Wikipedia has pages for each day of the year (e.g., January 1, April 25). Each page contains a list of names of famous people with that birthday along with a short description of each person. I wrote an R script to scrape these lists from each wikipedi...

Read more »

Election Results vs. Benford’s Law and the Return of City-States?

December 1, 2016
By
Election Results vs. Benford’s Law and the Return of City-States?

From Wikipedia:  Benford's law, also called the first-digit law, is an observation about the frequency distribution of leading digits in many real-life sets of numerical data. The law states that in many naturally occurring collections of numbers, the leading significant digit is likely to be small... Benford's Law is a technique to screen for fraud in a large number of numeric records. Let's apply this to...

Read more »

The Simpsons as a Chart

March 26, 2016
By
The Simpsons as a Chart

Inspired by this clever image, I thought I would whip it up in R.Results:Below is the R code: 1: # Prepare ----------------------------------------------------------------- 2: rm(list=ls());gc() 3: pkg

Read more »

The Simpsons as a Chart

March 26, 2016
By
The Simpsons as a Chart

Inspired by this clever image, I thought I would whip it up in R.Results:Below is the R code: # Prepare ----------------------------------------------------------------- rm(list=ls());gc() pkg

Read more »

Visualing High Dimensions as DNA Strands

January 10, 2016
By
Visualing High Dimensions as DNA Strands

For a community project, I needed to research which U.S. cities were most similar to mine. The U.S. census has some wonderful data that covers 1,579 statistical areas, using the Office of Management & Budget's definition.With this data, I selected ...

Read more »

Visualing High Dimensions as DNA Strands

January 10, 2016
By
Visualing High Dimensions as DNA Strands

For a community project, I needed to research which U.S. cities were most similar to mine. The U.S. census has some wonderful data that covers 1,579 statistical areas, using the Office of Management & Budget's definition.With this data, I selected the relevant attributes and then calculated the root mean squared error of the scaled distances from the target city...

Read more »

What Does the AVERAGE Brand Logo Look Like?

October 23, 2015
By
What Does the AVERAGE Brand Logo Look Like?

PNG images are essentially a grid of values that represent colors to display. Since each cell in the grid is made up of numbers, I got curious about what it might mean to aggregate multiple PNGs. What would it look like to average two or more images? Median? Mode? Random?To do so, I pulled the top 100 brands' logos...

Read more »

What Does the AVERAGE Brand Logo Look Like?

October 23, 2015
By
What Does the AVERAGE Brand Logo Look Like?

PNG images are essentially a grid of values that represent colors to display. Since each cell in the grid is made up of numbers, I got curious about what it might mean to aggregate multiple PNGs. What would it look like to average two or more images? Median?To do so, I pulled the top 100 brands' logos from Best Global...

Read more »

cuRve stitching

September 15, 2015
By
cuRve stitching

Remember curve stitching from grade school? It makes for a nice tutorial for working with some common R functionality.Here's an example of how to create the appearance of a parabola from plotting a series of straight lines:pkg

Read more »

Search R-bloggers

Sponsors

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)