How Wacky Has LA’s Weather Been in 2019? These Charts Help Explain

By Matt Stiles | | Topics: Weather

The famously temperate* weather in Los Angeles just can’t quite figure itself out this year.

This year brought “Snowing in Calabasas!”, which was part of the “February to remembrrr”, and by April tempurates were unseasonably balmy. We also got rain and more rain and then some more rain.

These charts help explain the wackiness (at least by Los Angeles standards):

* Full disclosure: I grew up in Texas. The last full year I lived there, in 2010, the temperature reached 100 degrees during 69 days. “Temperate” is a relative word.

Visualizing Verified Twitter’s Reaction to Robert Mueller’s Investigation

By Matt Stiles | | Topics: Policy & Politics

Special Counsel Robert Mueller’s now-concluded investigation into the Trump campaign and Russian influence over the 2016 presidential election was obviously a hot topic on Twitter.

More than 400,000 tweets — an average about 600 per day — mentioned the word* “Mueller” since the former FBI chief was appointed to lead the investigation in May 2017, according to a dump (190MB csv) of verified user data pulled from the social network using Python and Twint.

That interest spiked during key news events before skyrocketing on Friday and Sunday, when Mueller concluded the investigation and then the Department of Justice released a letter summarizing the findings:

You can download the data here (190MB csv).

* This data dump, due to my general laziness and day job duties, includes a bit of noise from misspellings of the the German footballer Thomas Müller’s name and some other unrelated “Mueller” tweets — about 60 a day, I would say, on average. You get the idea, though.

[Photo courtesy The (Obama) White House, via Wikimedia Commons]

Trump’s Approval Ratings are Resilient. How Does that Compare Historically?

By Matt Stiles | | Topics: Policy & Politics

Despite all the controversy attached to his presidency, Donald Trump has managed to retain a relatively consistent approval rating in the last two years — especially when compared to predecessors in the modern era.

The president’s approval rating has climbed some in recent weeks after a significant decline in January, reverting to around the average during the last two years.

Perhaps it’s the tribalism in American politics or the fragmented news ecosystem or the president’s skills as a communicator — but, for some reason, Trump hasn’t experienced the wide fluctuations of his predecessors.

He also, of course, remains historically unpopular.

According to Gallup, the president’s rating changes have stayed within a 14 percentage point range.

Other presidents — even those who only served one term — have experienced wider swings in their popularity over time. The late George H.W. Bush, for example, saw his popularity drop from 89% in February 1991 to 29% the following summer, a massive change.

Here are all the presidents, and their popularity ranges, since Harry Truman:

Image courtesy WikiMedia Commons

Visualizing a Year of @realDonaldTrump

By Matt Stiles | | Topics: Policy & Politics, Social Media

President Trump thumbed his way through another year in the White House on Twitter, compiling a good (great) collection of 2,930 touts, complaints, defenses and rants.

He left 2018 with this perplexing New Year’s Eve missive extolling the old-fashioned endurance of “Walls” and “Wheels” as one of his last.

As the message shows, the president’s twitter presence lately is crowded by an increasingly evergreen list of grievances (Democrats, Russia, fake news, etc). Still, plenty of his messages actually correspond quite neatly with news events.

Notice how the #maga hashtag, a political rallying cry, disappears after the midterm elections. He talks about The Wall and shutdowns in and around the shutdowns, of course. And he decries Special Counsel Robert Mueller most often around the times his former aides have appeared (and been convicted or pleaded guilty) in federal court.

These examples are obvious when plotted on a timeline with annotation:

Through it all, the president’s audience of followers grew steadily by 10 million users. He now has 56.7 million followers (me included). He’s No. 15 on that measure, according to friendorfollow.com, sandwiched between heavy hitters like @selenagomez and @britneyspears!

During 2018, @realDonaldTrump spread his tweets throughout the days of the week, with the president even finding time on the weekends to sound off:

This large collection of messages, scraped using twint, drew more than 300 million of engagements, with “likes” being most common by far. This one about North Korean leader Kim Jong Un a year ago received a whopping 475,000 likes, topping the list.

Here’s how those engagements split proportionally:

Speaking of retweets, there were 57 million in 2018. They came at the rate of 200,000 per day in some months. This popular “they-just-don’t-get-it” mashup of video clips, for example, received more than 110,000 retweets alone in July:

And, finally, as in years past, those messages were a mix of endorsements, promotions, defenses and complaints. Among the more popular keywords (sorry, no word clouds here):

You can download the data as a CSV here. Happy New Year!

Chart: Republican Attacks on the FBI Have Worked, Especially on Republicans

By Matt Stiles | | Topics: Policy & Politics

HuffPost is out with an interesting poll about the the public’s trust in the FBI, which has been under attack recently for its role in the investigations of Hillary Clinton and Donald Trump.

Trump and his supporters have been particularly tough on the bureau, and it shows in the polling data.

A slim 51 percent majority of the public say they have at least a fair amount of trust in the FBI, according to a new HuffPost/YouGov poll, down 12 points since 2015. Most of that change comes from Republicans and independents, among whom the percentage saying they trust the agency dropped by 22 points and 15 points, respectively. Allies of the White House have spent much of January ramping up their attacks against the FBI’s Russia investigation.

This chart shows the change:

Chart inspiration via Katie Park. Image courtesy “Brunswyk” via Wikimedia Commons.

Visualizing #NICAR18, Part II

By Matt Stiles | | Topics: Uncategorized

I posted recently about the NICAR journalism conference, held this year in Chicago — and it turns out news nerds like to tweet.

To keep track of all the conference chatter, I dumped each mention of the #NICAR18 hashtag using Python, eventually collecting some 4,100 tweets.

I used #nicar18 several times. Others were even more prolific. Here are those with more than 10 uses during the conference:

Next, I created a histogram with average #nicar18 tweet counts by hour for the three full days: Thursday, Friday and Saturday. It shows when people sent the most tweets — and that they apparently took more breaks during lunch and just before the first afternoon sessions began.

The pattern is also clear here in a more granular view of daily tweet counts by hour:

This tweet volume, which only captures people tweeting with the hashtag, was posted by attendees from across the globe. This year’s conference, as I mentioned in the previous post, had record-breaking attendance: more than 1,200.

Here’s where the attendees came from:

These types of maps are imperfect, of course, especially on mobile. For one, it’s tough to decipher attendance from the Northeast and Mid-Atlantic regions.

Here’s a more focused version (still a little nuclear blasty), if that helps (please note that the scale is different from the map above):

See you next year, NICARians!

Visualizing the Historical Relationship Between White, Black Unemployment Rates

By Matt Stiles | | Topics: Economy & Finance

President Trump was right last month when he bragged that black unemployment rate was at a historical low. The rate in December was 6.8 percent, the lowest it’s been since 1972 (though it ticked back up nearly a percentage point last month).

But the president’s statement excluded some important context about the historic movement of this rate by race and ethnicity. I’ve tried to explain in these graphics.

First, here are four rates — all groups, black, Hispanic and white — since Ronald Reagan was in office. The early 1980s, as you can see, were pretty rough. Things have gotten better, both in terms of the rate during recessions and recoveries, and all groups have improved together as a pattern since the Great Recession:

Whether you believe a president can have any short-term effect on unemployment or not, a key point is that these rates rise and fall together. They are quite strongly correlated. In about 90 percent of the months since 1980, for example, a relationship existed between movement in the white and black rates. This correlation is slightly less strong under Democratic presidents, for whatever reason:

Even though the black rate is relatively low today, it has historically been about 2-2.5 times higher than the white rate.

Image courtesy Wikimedia/U.S. National Archives and Records Administration.

The Curious Case of South Korea’s Vanishing Washing Machine Exports

By Matt Stiles | | Topics: Economy & Finance, South Korea

The Trump administration last week announced that it planned to impose higher fees, known as tariffs, to countries that export washing machines and solar panels the United States.

The tariffs, prompted by complaints from American companies who feel disadvantaged by global trade, were applied across the world — even though they seem primarily aimed at two nations who dominate the market: China and South Korea.

That’s in part because both countries have moved their manufacturing around to avoid such duties. In South Korea’s case, the change in strategy by companies like LG and Samsung seems remarkably obvious in trade data — on washing machines, in particular.

A bit of background: The U.S. Census Bureau keeps detailed data on specific product exports, by country, to the United States. The data reflect the total export value by year and national origin — where the ships came from, essentially — not by companies’ home countries. So Samsung products made in China and exported from China look like Chinese exports.

This graphic shows one possible scenario for how the strategy played out. Washing machine exports from South Korea to the United States dropped dramatically, for example, after a complaint filed in late 2011 by Whirlpool, an American manufacturer. A year later, exports from China increased significantly (and have since fallen, perhaps reflecting other shifts in manufacturing locations, such as Southeast Asia, Mexico and/or the United States itself).

The Times’ story noted the South Korean companies’ concerns:

Samsung and LG described Whirlpool’s case as a protectionist grab designed to shut out products that American consumers find more attractive, and argued that such restrictions on their products would hurt consumers by raising prices.

The export change appears to be because South Korean washing machine companies moved their operations to China during 2013 — and later the the United States — perhaps in an effort to avoid the complaints or looming tariffs. Or because the change was good business for the companies.

Anyway, the data seems pretty obvious:

It’s Been a Hot Summer, Down Under

By Matt Stiles | | Topics: Weather

My family is vacationing this week in Mosman, Australia, a harbourside Sydney suburb near Balmoral Beach known for its family friendly attractions and boutique shops.

This place is a great holiday spot. There’s only one problem this year, though: It’s been quite hot.

Sydney is normally relatively temperate during the summers, which occur opposite winters in the Northern Hemisphere. The average temperature in Celsius this time of year usually runs in the 25-degree range, or around 80 Fahrenheit. Today, though, was 35 degrees, or roughly 95 Fahrenheit.

Have I mentioned that our vacation home doesn’t have air conditioning?

We’ll somehow survive, but the heat did prompt me to scrape some weather data.

During the last month Sydney has experienced severe heat spikes, some of them eclipsing records and even fueling wildfires. Last January, typically the hottest month here, there was a similar pattern.

This chart shows the year in temperatures. The color bars show the range of each day’s highs and lows. The black step lines show historical averages. And the gray line shows the record highs.

America Imports Lots of Stuff from China, Including Christmas Decorations

By Matt Stiles | | Topics: Economy & Finance

Last year, the United States imported more than $460 billion in goods — clothes, toys, gadgets, you name it — from China. Of course, our Christmas decorations were on that list, too.

Some $2.2 billion in fake trees, miniature lights and assorted ornaments came from the Middle Kingdom last year, according to the U.S. Census Bureau’s detailed trade database.

The Christmas trade in ornaments is big business. It skyrocketed in the mid-1990s (like all products from China) and dipped during the recession (like all products from China).

Here’s a simple chart:

Merry Christmas. 圣诞节快乐.