Mapping South Korea’s Foreigners

By Matt Stiles | | Topics: Demographics, Korea

korea-foreigners-seoul

Note: My family last year relocated to Seoul, where my wife is working as a foreign correspondent for NPR. This post is part of an occasional series profiling the peninsula’s demographics and politics.

This week I looked at the population of foreign residents in South Korea, charting national origin and geographic distribution around the country. But if you don’t live here (and even if you do) that geography can be quite difficult to absorb without maps.

So, after a year of procrastination, I finally got the courage to tackle the detailed census and geography files from the Korean Statistical Information Service (you try loading Hangul characters in a database!).

Charting Clinton’s Sizable Lead in Votes

By Matt Stiles | | Topics: Policy & Politics

This post has been updated. See correction at the bottom of the page.

To some Bernie Sanders supporters, the Democratic presidential race must seem close. Their candidate, after all, has essentially split victories with Hillary Clinton in the more than 30 election primaries and caucuses since the process began in February — including several in a row recently.

Clinton, their thinking goes, may have a lead in pledged delegates for the nomination, but her sizable and (for now) critical lead among party leaders known as “superdelegates” could crumble if the Vermont senator continues winning.

Anything’s possible. But Clinton has already secured many, many more votes than the Vermont senator and, party rules and delegate grappling aside, is absolutely dominating the race in terms of raw support. This trend is likely to continue with large, Clinton-friendly states coming up, and it could undercut Sanders supporters’ “will of the voters” hypothesis going forward.

Clinton has won roughly 9.4 million votes, compared to Sanders’ 7 million, according to returns from U.S. states. Along the way she’s posted huge victories. Her margin in Florida alone (530,000 votes) is about the same as Sanders’ margin in his victories combined.

Here are a few quick sketches (see correction below) that help illustrate this fact. First, let’s look at their states on a scatter plot to explore not just the number of victories for each candidate but the size of their respective states — and the relative victory margins:

scatter

Here’s a similar view in the form of a bubble chart (or, Alastair Dant would say, “BALLS!”):

bubbles

And, finally, two maps. Again they show the large margins — and geographic differences — evident Clinton’s victories:

maps

UPDATE: A Twitter user suggested I look at the data with time in mind. Not sure it proves his point, but here’s another sketch:

time

The charts were made with Tableau Public, a useful tool for sketching with data. You can see interactive versions of the charts here: Scatter | Bubbles | Maps | Time.

(Correction: Some caucus states — Washington, Nevada, Maine and Wyoming — reported candidates’ proportional number of delegates selected to state conventions, not actual votes. The charts below now reflect margin estimates extrapolated from the total Democratic caucus participation by delegate share, like this. The charts were updated to reflect these estimates. The central idea of the post, and the overall popular vote margin difference between the candidates, remains virtually unchanged, however.)

Mapping GOP Campaign Cash by Density

By Matt Stiles | | Topics: Policy & Politics

The GOP presidential candidates collectively have raised more than $300 million in this election cycle, according to Federal Election Commission data. Here’s a quick look at where the several of those candidates — Jeb Bush, Ben Carson, Chris Christie, Ted Cruz, John Kasich, Marco Rubio and Donald Trump — collected the money.

Each dot on the maps (see update below) below represents at least $5,000 raised by zip code. The dots in each place are assigned randomly within the zip code boundaries, creating a density map (think Verizon vs. AT&T) for campaign donations* through Feb. 29.

Here’s a (crowded) map with all the candidates. The dots were layered alphabetically, a method that unfortunately obscures some candidates at this scale, depending on the geography. Still regional differences are evident:

zips_gop_contribs_all

JEB BUSH

The former Florida governor raised large amounts of money, of course, from his home state, but also — as the perceived frontrunner for a time — from major population centers:

zips_gop_contribs_bush_red

BEN CARSON

Carson raised a ton of money for someone who received relatively little love once voters started casting their ballots. His map shows he raised more from small locations throughout the country, not just the major population centers:

zips_gop_contribs_carson_red

CHRIS CHRISTIE

The New Jersey governor, understandably, raised a large proportion of his money from his home region:

zips_gop_contribs_christie_red

TED CRUZ

The Texas senator raised money from all over the country, but he clearly has a financial base in Dallas-Fort Worth, Austin, San Antonio and Houston — the major population centers in his home state.

zips_gop_contribs_cruz_red

JOHN KASICH

Like Christie, the Ohio governor tapped his donor base at home:

zips_gop_contribs_kasich_red

MARCO RUBIO

The Florida senator’s map looks much like that of his frenemy, Bush:

zips_gop_contribs_rubio_red

DONALD TRUMP

The billionaire business man, who has relied largely on personal funds for his campaign, has raised very little money in checks larger than $200, as reflected in his map:

zips_gop_contribs_trump_red

* To keep the analysis consistent for all campaigns, the maps were created with a data set that excluded individual donations of less than $200. The data include only donations to the candidates’ campaign committees, not other political committees supporting them.

UPDATE (9:20 p.m. EST): Based on David’s suggestion in the comments, I’ve changed the dot color in the individual maps so it’s consistent. You can see the originals here: Bush | Carson | Christie | Cruz | Kasich | Rubio | Trump.

Clinton Dominates ‘Majority Minority’ Counties

By Matt Stiles | | Topics: Demographics, Policy & Politics

Hillary Clinton’s efforts to win over minority voters have paid off significantly in the Democratic primaries. Many of these voters simply aren’t feeling the Bern, according to voting results and demographics data from the U.S. Census Bureau.

Since January, Clinton and her main rival, Vermont Sen. Bernie Sanders, have faced off in 26 states, pulling about 15 million votes from 1,900 counties and county equivalents. (Votes in two states, Kansas and Minnesota, were calculated at the congressional district level).

Roughly 250 of the counties contested in the Democratic race are majority minority, meaning non-Hispanic whites there represent less than half the population. The majority in those places is as follows: Blacks (91 counties), Hispanics (64 counties) and Native Americans/Alaska natives (1 county). Another 93 counties have no ethnic or racial majority, making them quite diverse compared to much of America.

Clinton won all but seven of these majority minority counties.

To understand this phenomenon, it’s useful to take a look at her vote share on a map (inspired by The New York Times’ lovely interactive version here). She’s dominated the Deep South and Texas, places with high proportions of black and Hispanic voters, respectively:

primary_results_dems_clinton

Sanders’ map also clearly shows Clinton’s strength, except for a few places (remember Kansas and Minnesota’s maps would look different had votes been counted at the county level) outside the South and in New England, his home turf:

primary_results_dems_sanders

Here’s a map showing all 249 majority minority counties in the Democratic race thus far on top of Clinton’s vote share. As I mentioned, Sanders only won seven of them (and only one with a population greater than 10,000):

primary_results_dems_clinton_mm

Clinton’s dominance is particularly evident among black voters specifically. Of all the counties in the race, not just those that are majority minority, about 380 have at least a 25-percent black population. Clinton, somehow, won them all, edging Sanders by 1.5 million votes:

primary_results_dems_clinton_black

Of course, none of this is a surprise. Black voters in overwhelmingly side with the Democrats, and Clinton is the Democratic front runner. But it’s interesting, I suppose, that Sanders hasn’t done better.

Thoughts?

Where ‘Anglos’ are the Minority

By Matt Stiles | | Topics: Demographics, Policy & Politics

I’ve posted before about “majority minority” counties — places where non-Hispanic whites represent less than half the population. They were critical to President Obama’s election in 2008, and their numbers continue to grow.

The number of “majority minority” counties — now the most in modern U.S. history — have doubled since 1980, according to the Pew Research Center.

The most-recent population estimates from the U.S. Census Bureau show that non-Hispanic whites (or “Anglos,” as my Texas friends call them) are the minority in 364 counties.

There are 151 that don’t have a single racial or ethnic group in the majority, making them the country’s most-diverse places. Hispanics are more than half the population in 94 counties, mostly in the Southwest, followed by blacks (93, mostly in the Deep South) and American Indians/Alaska natives (26, mostly in the Great Plains and Alaska).

Here’s a quick map:

'Majority Minority' Counties

‘Majority Minority’ Counties

The number of these counties, of course, will continue to grow and shape our culture and politics. Tomorrow we’ll look at these locations in the context of the current presidential primaries.

New Show, Knife Raise O.J.’s Google Profile

By Matt Stiles | | Topics: Crime, News

More than 20 years after his blockbuster murder trial, O.J. Simpson is back in the news — this time after Los Angeles police reportedly found a knife on the grounds of his former estate.

O.J. Simpson

O.J. Simpson

According to the Los Angeles Times, a retired police officer “has handed over a knife given to him by a construction worker who helped raze Simpson’s mansion in 1998.” The knife, which could have been used in the slayings of Nicole Brown Simpson and Ronald Goldman, is now being tested by the police.

The news comes a month after a new television show dramatizing his sensational trial began airing on FOX.

The renewed interest in Simpson, now serving a prison term in Nevada for an unrelated robbery and kidnapping case, is reflected in online search traffic, according to Google Trends.

This graph shows search volume since 2004. Traffic has been relatively dormant over the years except for spikes, like in September 2007, when Simpson was arrested in Las Vegas on multiple felony counts after an altercation over sports memorabilia. Another spike in late 2008 reflects his conviction at trial. He’s now serving out a 33-year-term but is eligible for parole next year.

Searches for his name spiked significantly after the new show, starring Cuba Gooding Jr., began airing Feb. 2.

Regional trends are also evident in the searches. This map shows that searches in Nevada and the Las Vegas metro area more common than in other parts of the country. That makes sense because of the location of his trial and incarceration.

Screenshot 2016-03-05 09.23.51

Someday O.J. Simpson will no longer capture the collective imaginations of Americans. Today is not that day, apparently.

Mapping Police Officer Slayings by State

By Matt Stiles | | Topics: Crime, News

Newly sworn police officer Ashley Guindon, center, was killed responding to a 911 call on her first day working for the Prince William County (Va.) Police Department. She was 28. Image via Twitter.

Newly sworn in police officer Ashley Guindon, center, was killed responding to a 911 call on her first day working for the Prince William County (Va.) Police Department. She was 28. Image via Twitter.

A rookie Virginia police officer working her first official shift was shot and killed Saturday while responding to a domestic violence dispute, authorities say. The officer, Ashley Guindon, was killed a day after being sworn in to the Prince William County Police Department.

Guindon, 28, was the 22nd police officer killed in the United States this year, according to the Officer Down Memorial Page, which has among the most comprehensive and timely national statistics on the Web. It was the first such incident this year in Virginia.

Since 1791, according to the site, more than 22,000 police personnel — federal, state, local and tribal (and K-9) — have been killed in the line of duty. The country’s most populous states — California, Texas and New York — lead the nation in police killings. That’s no surprise given the size of their populations.

The map below, however, attempts to normalize the state totals by adjusting for the total number of police officers in each state as of 2011 — the latest data available from the FBI. (Police forces by state vary in size based on a number of factors, including density. The District of Columbia, for example, is among the least-populous “states” listed in the data, but it has the highest rate of officers per capita in the country. That’s because it experiences a huge influx of daily commuters from Virginia and Maryland each day — and because of the tourism and security that comes with being the nation’s capital).

By that crude measure, Kentucky has proportionally had the highest number of killings, with roughly 85 per 1,000 officers, followed by West Virginia (47) and Montana (42). Florida (11), Arizona (12) and New Hampshire (13) — states, incidentally, with older populations — have the lowest rates, respectively. Again, this rate isn’t perfect, but it’s better than viewing the raw totals (which looks like a population map).

Police killings per 1,000 officers: 1791-2016. Data source: Officer Down Memorial Page. Map by Matt Stiles/The Daily Viz.

Police deaths per 1,000 officers: 1791-2016. Data sources: Officer Down Memorial Page, FBI. Map by Matt Stiles/The Daily Viz.

Map: Where Zika-Carrying Mosquitoes Might Appear in the United States

By Matt Stiles | | Topics: Demographics, Weather

U.S. Health officials are investigating the possibility that the Zika virus could be spread through sex, The New York Times reports.

If confirmed, this development could seriously complicate efforts to control the spread of the disease, which health officials suspect causes birth defects in children whose mothers were infected during pregnancy.

The disease has spread in Brazil and other tropical climates, primarily through mosquito bites, including those by a species that thrives in the southern and western United States: aedes aegypti. It’s still winter in the United States, but some are readying for the day when the airborne pests move the disease north.

Still, experts believe a widespread outbreak across the United States is unlikely. They note that the mosquitoes only thrive in tropical areas, and that the prevalence of air conditioning, window screens and the expected abatement efforts by local governmental agencies will reduce their threat.

The mosquitoes’ habitat may seem small geographically compared the country as a whole, but it does includes about one in five American counties. They are home to roughly 80 million people, according to a Daily Viz analysis of data released by the mapping company Esri and the U.S. Census Bureau.

The rough map below shows the species’ habitat (shaded in pink) and its respective counties’ population density (red dots represent 50,000 residents). The area includes roughly 29 million households — some of which, of course, will include pregnant women this summer.

Aedes Aegypti habitat in the United States.

Aedes Aegypti habitat in the United States. Credit: Matt Stiles/The Daily Viz.

Mapping GeoJSON On Github

By Matt Stiles | | Topics: Social Media

I’ve been hoping to tinker with Github’s new mapping service since the company announced it earlier this month. Turns out it’s quite easy. You just commit a GeoJSON file to your repo, and voilà.

The points on this simple map represents the location of each car2go I’ve rented (excluding those in Austin, Texas). Surprise, they’re mostly clustered in our neighborhood:

car2go locations

This is a simple as it gets. The service also allows other data types, like polygons, for example. Tomorrow I’ll try a more interesting data set, maybe DC property parcels or 311 calls locations. And I’ll experiment with the Github docs to see how I can customize the icons and design. We’ll see…

BTW: Github is using MapBox to create its custom map base layer. Read more about that here. And thanks to my co-worker, Chris Groskopf, whose csvkit suite makes it super easy to convert basic data files into GeoJSON.

Mapping ‘Majority Minority’ Presidential Results

By Matt Stiles | | Topics: Demographics, Policy & Politics

Yesterday I mapped the more than 350 “majority minority” counties in the United States, breaking them down by race and ethnicity groups and geography. As promised, today I’ve looked at how these counties (in the contiguous United States) voted in the 2012 election.

Obama won about 70 percent of these counties. Here’s the map:

The Daily Viz

The Daily Viz

That map, of course, can be misleading — as often happens in elections. That because the area of the counties can distort their actual voting power. In this case, Obama won more “majority minority” counties with urban populations and many more voters, such as Los Angeles (Calif.), Cook (Ill.) and Kings (N.Y.) counties, among others. Romney carried rural Republican counties, largely in Texas and the west.

Obama received nearly 18 million votes in the “majority minority” counties he carried. Romney got 2 million votes in his “majority minority” counties. In the end, Obama received a net 10 million votes from “minority majority” counties — nearly double his national margin over Romney in the country as a whole.

The map below uses proportional circles on top of the choropleth map above to help visualize the total votes in each county. You can see how Obama won in many of the most-populous counties, increasing his national margin (though not necessarily helping with the Electoral College — except in critical purple states he carried, such as Florida and Virginia).

The Daily Viz

The Daily Viz

You can download the data here.

For more updates, follow me on Twitter.