Articles by Two Points Make a Line

That’ll be ₱1 billion please

April 5, 2023 | Two Points Make a Line

The pandemic provoked a lot of experimentation in Philippine urban transport policy. Some were sensible, like rationalizing bus stops along EDSA. Some were, uh, destined to be hallmarks of the time. One of the more forward-thinking was the elevation of bicycles as a bona fide mode of transport. What’s ...
[Read more...]

Telling the future is hard

March 11, 2023 | Two Points Make a Line

Do you want to excel at telling the future? Nostradamus shows us one way: make your predictions as vague and ambiguous as possible and you will always be “right”. Try attaching a 40% probability to all your calls: if you’re wrong, hey, you never said it was a sure thing. ...
[Read more...]

The demographics of Nobel laureates

March 2, 2023 | Two Points Make a Line

In a previous post, we talked about the Oscars and whether prestige awards still matter. Let’s turn now to what is perhaps the mother of all prestige awards — the Nobel Prize. The legacy of Swedish industrialist Alfred Nobel, it honors outstanding achievement in the fields of chemistry, literature, medicine, ...
[Read more...]

The standard age

February 13, 2023 | Two Points Make a Line

A super spy races to stop terrorists from bombing a national landmark. A dour careerist falls in love with a reckless bohemian. A genius overcomes a disability to make revolutionary discoveries. A dorky scientist gains superpowers after a lab acci...
[Read more...]

Francis is an old pope

February 5, 2023 | Two Points Make a Line

Next month, Pope Francis will mark his 10th year in the papacy. Will he make it to his 15th year? His 20th? He is already 86: the last pope to reach this age was Leo XIII, who died in 1903 at the age of 93.1 In fact, by my count, only 15 of the 26...
[Read more...]

Will people care about this Oscars?

January 25, 2023 | Two Points Make a Line

With the release of this year’s Academy Award nominations, many have pointed out a surprising fact: several of the films gunning for Best Picture are actually hits! More than that, the highest-grossing movie of the year (which is, somehow, Avatar: The Way of Water) and the second-highest grossing (Top ...
[Read more...]

Somehow, Avatar has returned

December 20, 2022 | Two Points Make a Line

In 2009, I watched James Cameron’s Avatar and thought, wait a minute, this is just Atlantis: The Lost Empire but with blue people. Then I didn’t think about Avatar again for the next 13 years. Last week, Avatar: The Way of Water was released, the ...
[Read more...]

Luzon’s hiking trails

December 14, 2022 | Two Points Make a Line

I have lately been experimenting with R’s map-making capabilities, and as a project I wanted to try visualizing the great mountain ranges of Luzon. The Philippines has some remarkable mountain ranges, and hiking through them is a unique sort of pl...
[Read more...]

I’m gonna carry that weight

December 6, 2022 | Two Points Make a Line

The pandemic (and turning 30) made me really start paying more attention to my health, and one of my resolutions was to go to the gym more consistently. It’s now been a little over a year. At the moment, my one-rep max for squats is about 1.5x my ...
[Read more...]

More on the great post-1500 migrations

November 25, 2022 | Two Points Make a Line

In my last post I brought up the World Migration Matrix, an ambitious dataset constructed in 2009 by Louis Putterman and David N. Weil that attempts to trace the ancestral origins of the present-day populations of nearly every country on Earth. It’s a complete matrix, so that you can pick ...
[Read more...]

The roots of economic development

November 24, 2022 | Two Points Make a Line

One of the most interesting economics papers I’ve ever read is the 2013 survey by Enrico Spolaore and Romain Wacziarg (SW) titled “How Deep Are the Roots of Economic Development?” There has long been an active, highly contentious discussion over why some countries today are rich while others are poor. ...
[Read more...]

The emotional shape of novels

November 18, 2022 | Two Points Make a Line

Novels can take you for such a ride. Today I’m experimenting with sentiment analysis on some novels I’ve recently read. I’ll be using tidytext with data from gutenbergr (i.e. Project Gutenberg), which means I’m restricted to the classics. I r...
[Read more...]

That FTX balance sheet

November 14, 2022 | Two Points Make a Line

I was reading Matt Levine’s entertaining walkthrough of the FTX balance sheet and I thought it’d be fun to visualize this, um, unique financial document. FTX is a crypto exchange that collapsed spectacularly last week. There are already plans for ...
[Read more...]

Should you dual wield y axes?

November 9, 2022 | Two Points Make a Line

Consider this: all charts are essentially squiggles on a Cartesian plane. There’s a horizontal, or x, axis and there’s a vertical, or y, axis. This implies that the underlying datasets ever only need two columns, corresponding to the two axes. Man...
[Read more...]

Mapping the Metro Manila subway

November 7, 2022 | Two Points Make a Line

Today I’ll experiment with making maps via leaflet, which I’m using for the first time. I’m relying mainly on this tutorial. library(tidyverse) library(leaflet) Below is a map pointing out some of the planned stations of the future Metro Manila Subway, which will be built… sometime… ...
[Read more...]

Exercises in plotting WDI data

November 4, 2022 | Two Points Make a Line

In the old days I used to download WDI datasets in Excel format and point-and-click my way to a neat little chart. Now I want to try using the WDI package and some ggplot wizardry. library(tidyverse) library(ggplot2) library(WDI) To start, let’s...
[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)