I invented something better than wordclouds. True or False?

[This article was first published on HighlandR, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

The world’s going to pot.

People who shouldn’t be in charge of jumble sales are in charge of countries, and billionaires are taking the words ‘intergalactic’ and ‘knob’ to new extremes, by flying big ones into space.

For real.

One way to escape the madness is to immerse yourself into the delightful world of Bob Mortimer, and more specifically, his appearances on the BBC show, ‘Would I Lie To You?’. This is a panel show where contenstants read a statement from a card, which may or may not be true. The other team can then ask questions and then have to decide if the person is telling the truth.

Normally, the stars of the show are David Mitchell and Lee Mack. David’s unremitting cold logic and sarcasm tend to break most participants, while Lee’s quips and comebacks are lightning fast and usually unparalleled.

All that changes when Bob is on the show:

Here’s a list of the statements Bob has had to read out

image

I strongly urge you to watch them here

I decided it might be a fun idea to look at the sentiments of the comments, which mean getting my head around the {tuber} package. The package is easy to use, but getting set up with Google to use the API was a bit of a hassle, because the process has changed since the tuber documentation was published.

Anyway, I worked my way through it, did a wee bit of tidytexting, and decided to produce these wordclouds, with a twist.

Here is a basic wordcloud, relating to Bob’s ‘Theft and Shrubbery’ tale:

theft-and-shrubbery

But we can do better.
Behold, the bobcloud:
shrubbery-sentiment R

What’s a bobcloud?
It’s based on the sentiment of the comments (rather than the frequency of the word). Admittedly, it’s a tiny difference, and not exactly earth shattering, but it doesn’t do any harm.

Also, I’m fed up of endless debates about data viz.

“Do what you want” is my new motto.

Getting back to the nonsense, Bob’s owl tale is my favourite of all these clips.

Here is the wordcloud:
mavis

bobcloud:

mavis-sentiment

Bob claims he break an apple in half with his bare hands:

apple

Can he? What do you think?
apple-sentiment

The repo is on github in the usual place in the unlikely event anyone needs to see the code.

To leave a comment for the author, please follow the link and comment on their blog: HighlandR.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)