Adam Pearce for the New York Times charted ad spending for Clinton and Trump, starting 20 weeks out from the election up to present. I like the John McCain, Mitt Romney, and Barack Obama spends as a point of reference.
-
Transitioning Map, Part 1: Mapping Irregular Data with Interpolation in R
Rarely do you have evenly-spaced data across an entire geographic space. Here is a way to fill in the gaps.
-
The Donald Trump campaign has a habit of highlighting poll results with a bar chart that just shows the top portion. The bottom baseline fades away somewhere or the values follow a random scale. They’re supposed to start at zero.
John Muyskens for the Washington Post highlights the campaign’s bar chart usage, and why it’s problematic. Sometimes if the bars were placed correctly, the results would show more favorable for Trump. The bar charts are just decorative, basically.
-
Interactive charts in R are still so-so, but if you don’t mind giving up some flexibility and just want something quick without having to learn a new language, there are a handful of options. RStudio highlights the highcharter package, which is a wrapper around the JavaScript-based Highcharts.
So the story goes that Torstein Hønsi, the founder and Chief Product Officer of Highcharts. was looking for a simple charting tool for updating his homepage with snow depth measurements from Vikjafjellet, the local mountain where his family keeps a cabin. Frustrated with the common flash plug-ins, and other proprietary solutions available at the time, he decided to build a standards-based solution of his own and then, of course, share it.
Write R. Get an interactive chart to export.
While we’re at it, you might also be interested in the R wrapper for Plotly, which is another JavaScript charting library, and htmlwidgets, which lets you work with JavaScript libraries within R (and highcharter makes use of).
-
Photographer Mike Kelley visited airports around the world, took pictures of airplanes leaving, and then pieced the photos together in a series of composite photos. The result was Airportraits.
A bit about the arduous process:
I often get asked exactly just how ‘real’ these images are. And on one hand, they are as real as they get. I’d sit in one place for an entire day, and take a burst of pictures of each plane as it crossed in front of me. I’d then take one of those captures, wherever I thought I’d like that plane to be, and put it on my base image. Every plane in every picture was actually right in front of me at that point in time, and they are all exactly where they were relative to other planes in the frame. If you went to some of these spots, you’d see the exact same thing that I saw.
I want to buy a camera.
-
Choice of color scale can make a big difference in how the data reads. A careless choice might make the data appear skewed too far low or too far high, so you need to look at the data and decide what’s right for the context. But, sometimes you just gotta make a lot of charts or maps. Or, you just don’t feel like manually picking the colors.
David Schnurr describes a way to use clustering to pick the natural breaks in a more automatic fashion. The best part:
In an effort to make it easier for anyone to use this technique in data visualizations, I’ve ported this new algorithm to JavaScript and created a custom d3 scale called d3-scale-cluster. You can find d3-scale-cluster on Github and npm–give it a try and shoot me a tweet @dschnr with your thoughts!
And I await for someone to make an R package.
-
I think many of us can relate to this during the odd election cycle. Marcus Wohlsen for Wired describes the constant visits and refreshes to FiveThirtyEight for new polls and projections.
Evan is a poll obsessive, FiveThirtyEight strain—a subspecies I recognize because I’m one of them, too. When he wakes up in the morning, he doesn’t shower or eat breakfast before checking the Nate Silver-founded site’s presidential election forecast (sounds about right). He keeps a tab open to FiveThirtyEight’s latest poll list; a new poll means new odds in the forecast (yup). He get push alerts on his phone when the forecast changes (check). He follows the 538 Forecast Bot, a Twitter account that tweets every time the forecast changes (same). In all, Evan says he checks in hourly, at least while he’s awake (I plead the Fifth).
This was me for a while, and no matter what the forecasts say, I never feel good about what I see. Because there’s always a chance.
-
Past Visions, a visual archive of Frederick William IV’s, shows thousands of drawings penned by the Prussian king.
Frederick William IV of Prussia (1795 – 1861) left a collection of drawings behind. They bear witness to historical events such as wars and revolutions, literary influences or personal obsessions with the devil. Numerous sheets reveal the planning eye of the King in the form of architectural visions and dreamy drafts.
Quickly browse the drawings by time and by category, all in high resolution. Nice.
-
Watch the regional changes across the country from 1990 to 2016.
-
Mapzen just released a Tron-style slippy map.
Today we introduce TRON version 2 as a fully realized Mapzen house style, rebuilt from the ground up to take advantage of the latest features of the Tangram graphics engine and Tangram blocks. With this new version, visual forms and elements transform per zoom, revealing new cartographic details and a deep exploration of scale transformations.
It’s slick. Be sure to zoom in.
-
I love the statistics lessons coming out of the Upshot, in the context of the upcoming election. In their most recent, Nate Cohn goes into varying statistical weights and how just one man can unknowingly shift the polls.
Our Trump-supporting friend in Illinois is a surprisingly big part of the reason. In some polls, he’s weighted as much as 30 times more than the average respondent, and as much as 300 times more than the least-weighted respondent.
Alone, he has been enough to put Mr. Trump in double digits of support among black voters. He can improve Mr. Trump’s margin by 1 point in the survey, even though he is one of around 3,000 panelists.
He also put Hillary Clinton ahead recently, because he wasn’t in the sample.
-
Last month Pitch Interactive launched an online tool for tiled cartograms, or tilegrams for short. Upload your state-by-state data, and it does the rest. Now you can make them in R, thanks to Bhaskar Karambelkar, since I know you’re just itching to make your own election maps.
-
I often stare far into the distance and ponder world’s greatest questions — like when specific spells were used in the Harry Potter books. No longer. This straightforward chart by Skyler Johnson pinpoints when each spell was explicitly said in the books and what each does.
-
Maciej Ceglowski, the creator of bookmarking site Pinboard, spoke at the Library of Congress a couple of weeks ago about deep-fried data.
In our case, the deep-fryer is a toolbox of statistical techniques. The names keep changing—it used to be unsupervised learning, now it’s called big data or deep learning or AI. Next year it will be called something else. But the core ideas don’t change. You train a computer on lots of data, and it learns to recognize structure.
These techniques are effective, but the fact that the same generic approach works across a wide range of domains should make you suspicious about how much insight it’s adding.
And in any deep frying situation, a good question to ask is: what is this stuff being fried in?
Deep fried food is often delicious, regardless of what’s inside the golden breading. But deep inside — or really right there in the front of our minds — we know it’s not good for us. Moderation. Or at least make sure you go to the good food stand at the carnival that uses the clean oil.
See the talk and many others here.
-
Florida has seen a lot of hurricanes come and go. Lazaro Gamio for the Washington Post looks at all the hurricanes that made their way towards the state over the past 100 years.
The thought of a hurricane freaks me out. This must be how non-Californians feel about earthquakes.
-
Based on data from researchers at Yale, the Upshot charts party registration by medical profession. Surgery and anesthesiology lean Republican, whereas psychiatry and infectious disease leans Democrat. As Margot Sanger-Katz notes, income between specialties likely plays a role. [Thanks, Bea]
-
-
The Simpsons is in its 27th season. That’s a lot of d’ohs. Todd W. Schneider had a look at the dialogue over the years, prominent characters, and declining ratings.
Did I mention 27 seasons? How is that even possible?