# Learn Data Science for Business

## Become a Data Scientist in our online courses

Earn 6 figures or more in 6 months or less by learning R, Shiny, Machine Learning, Time Series, Web Apps, AWS, Cloud, and more!

5-10 Hours Per Week. 80/20 Skills. End-To-End Business Projects.

[Start Your Courses Now! 👉](https://university.business-science.io/p/5-course-bundle-machine-learning-web-apps-time-series?el=website)

Join over 100,000+ Data Scientists

# How to make Data Visualizations THAT GO VIRAL (with ggplot2 in R)

_Written by Matt Dancho_

* * *

**Quit “storytelling with data”. There’s a reason your data visualizations aren’t working. Hear me out.** If you’re a data scientist or data analyst who wants to get an executive to stop from looking at his phone and to start looking at your slide deck OR someone on LinkedIn to stop mindlessly scrolling and start reading your post, then this **5-minute tutorial** will help you.

### Table of Contents

1. _The art of persuasion:_ The **STOP AND PAY ATTENTION** Framework.
2. _How to make [THIS VIRAL Data Visualization](https://www.linkedin.com/posts/mattdancho_its-2023-and-traditional-data-science-is-activity-7072599683017125890-R6IW?utm_source=share&utm_medium=member_desktop) in R:_ FULL Code Walkthrough with the `tidyverse` and `ggplot2`)
3. **BONUS: How to get the Excel file, data, and 100 lines of code to make the visualization for FREE (instructions at the end)** 👇

**And an extra bonus you get today:**

* * *

# SPECIAL ANNOUNCEMENT: AI for Data Scientists Workshop on December 18th

**What:** GenAI for Data Scientists  
**When:** Wednesday December 18th, 2pm EST  
**How It Will Help You:** Whether you are new to data science or are an expert, Generative AI is changing the game. There’s a ton of hype. But how can Generative AI actually help you become a better data scientist and help you stand out in your career? I’ll show you inside [my free Generative AI for Data Scientists workshop](https://learn.business-science.io/ai-register).

**Price:** Does **Free** sound good?  
**How To Join:** [**👉 Register Here**](https://learn.business-science.io/ai-register)

* * *

# R-Tips Weekly

This article is part of R-Tips Weekly, a [weekly video tutorial](https://learn.business-science.io/r-tips-newsletter?el=website) that shows you step-by-step how to do common R coding tasks. Pretty cool, right?

Here are the links to get set up. 👇

- [Get the Code](https://learn.business-science.io/r-tips-newsletter?el=website)
- [YouTube Tutorial](https://youtu.be/h26qbj4JqAk)

# This Tutorial is Available in Video

I have a companion video tutorial that walks you through how to use `gt` and `gtExtras` for this analysis. 👇

[How to Make Data Visualizations that GO VIRAL (using R)](https://www.youtube.com/watch?v=h26qbj4JqAk)

# The Art of Persuasion (The “STOP and Pay Attention” Technique)

The problem is you suck at getting people to pay attention to you. I know because I’ve been there (and spent the last 6 years improving my ability to market myself and my company.)

**If you can’t control the eyeballs, then you’re failing.** Your costing your company money. Your costing your career. Your not making critical connections, and your wasting your time. And that’s a problem.

# A Dead-Simple Framework: “STOP AND PAY ATTENTION”

The easiest way to control eyeballs is using a _pattern interupt_, simply put a way to get them to stop what they are doing and pay attention to me. **My vehicle for creating pattern interupts is my “Stop and Pay Attention” framework.**:

- “Stop and Pay Attention” is a little framework that I’ve used to get over 100 articles and posts on LinkedIn and Twitter to go viral.
- This has created 50,000+ leads, many of which have converted to paying customers.  
- And it’s also just as effective in the board room with a bunch of Executives that are near faking an illness to get out of your next presentation.

#### 1. THE STOP ACTION:

I started this R-tips Newsletter article with a pattern interupt (also called a “hook”). The hook is designed to get you to stop scrolling and pay attention to what I’m saying. Let’s dig into this pattern interupt:

> **_Quit “Storytelling with data”._**

#### 2. THE PAY ATTENTION TRANSITION:

> **_There’s a reason your data visualizations aren’t working. Hear me out._**

# 10X Virality with Data Visualizations

Including a Data Visualization with this newsletter **drives up curiosity and also gives you proof of a promise**, I’m going to help you create [this “Viral Image”](https://www.linkedin.com/posts/mattdancho_its-2023-and-traditional-data-science-is-activity-7072599683017125890-R6IW?utm_source=share&utm_medium=member_desktop), that has been popularized by me and others on the internet.  
And leaving this training you get something that you want: Skills to create viral data visualizations with R.

# How to APPLY “Stop AND Pay Attention” to Data Science Projects

Let’s take a Customer Churn Project that I want to present my findings on. My audience is non-technical. They are leadership, CEOs, VP’s, Directors. But they don’t know data science.

#### Here’s my whole Stop AND Pay Attention statement:

> **“Stop Cold-Emailing Customers. Your Customers are Dying. Let me explain.”**

#### STOP (The Pattern Interrupt):

> **“Stop Cold-Emailing Customers.”**

#### Pay Attention (Tweak pain. And the transition):

> **“Your Customers are Dying. Let me explain.”**

# And that’s the STOP AND APPLY framework (but you want the R code, right?)

Alright, I have a quick `tidyverse` and `ggplot2` tutorial so you can create your own VIRAL DATA VISUALIZATIONS. BUT FIRST…

# Free Gift: Cheat Sheet for my Top 100 R Packages (Special Data Analysis Topics Included)

To help, I’m going to share my secret weapon…

**Even I forget which R packages to use from time to time.** And this cheat sheet saves me so much time. Instead of googling to filter through 20,000 R packages to find a needle in a haystack. I keep my cheat sheet handy so I know which to use and when to use them. Seriously. [This cheat sheet is my bible.](/content/r-cheatsheet.html)

# Tutorial: How to make VIRAL Data Visualizations in R

This tutorial is awesome. You’ll learn how I made the [VIRAL “Types of Data Professionals” radar plot](https://www.linkedin.com/posts/mattdancho_its-2023-and-traditional-data-science-is-activity-7072599683017125890-R6IW?utm_source=share&utm_medium=member_desktop).

## Step 1: Get the Excel File

First, get this Excel file. To do so, [join the R-Tips Newsletter](https://learn.business-science.io/r-tips-newsletter?el=website).

## Step 2: Load the Libraries

First, load these libraries and the dataset.

## Step 3: Data Preparation

We need to convert the dataset into long format for the “tidy” data visualization. Run this code:

## Step 4: Make the Basic Radar Plot

Run this code to make the basic radar plot.

## Step 5: Dress Up the Radar Plot FOR VIRALITY!

If you want to make VIRAL Plots, then you need to dress them up!

# BONUS: Swipe My Code THIS TUTORIAL + 1 MORE DATA VISUALIZATION
