A tool to parse and visualise your WhatsApp group chats.
Click here to run the shiny web app.
Please e-mail me if you are experiencing problems with WhatStat.
Follow the steps outlined on the WhatsApp FAQ page
- Open the WhatsApp conversation you want to export
- Tap the contact's name or group subject in the navigation bar
- Scroll to the bottom and tap "Export Chat"
- Select "Attach without Media"
- Select "Save to Phone" or, if you want to email the log, select the Mail app
Follow the steps outlined on the WhatsApp FAQ page
- Open the chat for the individual or group
- Tap the Menu button
- Select More
- Select "Email chat"
- Select "Attach without Media"
git clone https://github.com/nriddiford/WhatStat.git
Start an R session, and install package:
library(devtools)
install_github("nriddiford/WhatStat")
library(WhatStat)
launchApp()
d <- parseR(in_file = 'chatLogs/Dools_chris_chat 3.txt')
Plot the post count by sender
senderPosts(chatdf = d)
Plot the time messages are sent
senderTime(chatdf = d)
Plot the messages over time (by month)
senderDate(chatdf = d)
Plot the messages over a year (by month)
senderDate(chatdf = d, filtYear = 2017)
Plot the sentiments per-user for the top 5 users (by word count) using the loughran method of sentiment analysis
chatSentiments(chatdf = d, top_sender = 5, method='loughran')
Make a word corpus using the tm package
c <- makeCorpus(chatdf = d)
Plot the most commonly used words with a minimum word length of 3
wordFreq(corpus = c, wordlength = 3)
Plot this as a word cloud
chatCloud(chatdf = d, wordlength = 3)