Creating Scatter Plots

  1. Sometimes you have to pull data from multiple sources instead of having it all in one file. Let’s add a couple more datasets, but this time we’re going to match them up or join them together to create one large dataset to work from.
  2. Go to the top Data Menu and select New Data Source.

    Data and New Data Source are outlined with red boxes at the top left

    Select Microsoft Excel.

    Microsoft Excel is outlined with a red box

    Choose AuthorDataCitationsGrants.xls.

    AuthorDataCitationsGrants.xls is outlined with a red box

    This is the dataset containing names of authors, their countries and institutions, research interests, how many citations they’ve received over a few years, and how much grant money they’ve received over a few years. AuthorDataMain table information is outlined with a red box

  3. Now click on “Add” next to Connections on the top left to add a second dataset, select Microsoft Excel.

    Add and Microsoft Excel are outlined with red boxes

    Then pick the AuthorDataExperience.xls file. This dataset has just author names along with how many years of experience they have as a researcher.

    AuthorDataExperience.xls outlined with a red box

  4. To relate or connect the two datasets, drag AuthorDataExperience under Sheets over to the section where it says, “Need more data?” (if you don’t see AuthorDataExperience under Sheets, make sure that AuthorDataExperience is selected under Connections).

    AuthorDataExperience under Sheets and Need more Data? Are outlined with red boxes

    The bottom window shows us that the data has been related together based on a common column, Author. Now the years of experience data will also be associated with the appropriate authors additional data found in the first table. Tableau performs relates and joins on the fly, as needed. If these terms are new to you, see these articles on relationships and joins in the slides.

    AuthorDataMain, Operator and AuthorDataExperience outlined with a red box

  5. Then we can click on the New Worksheet icon at the bottom. Let’s rename this one to “Scatter Plot”.

    The New Worksheet icon at the bottom left is outlined with a red box
    ​​​​​

  6. Scatter Plots are great to use to identify if there is any relationship between numeric variables. Let’s see if there is a relationship between grants and years of experience.
  7. Again, let’s create this scatterplot using the Show Me feature. This time, hold down the Control Key and click on Grants and Years of Experience (hold down the Command Key if on Mac), and then expand the Show Me tab. I see that Scatter Plot is one of the recommendations. Let’s pick it.

    Years of Experience and Grants outlined with red boxes under the Tables menu on the left. Scatter Plot icon outlined with a red box under the Show Me menu at the top right

  8. Doesn’t look like much yet, but let’s make some adjustments. First, instead of summing these variables, let’s take the averages. So right click on the Grants Pill next to Rows, select Measures (Sum) and then change it to Average. Do the same for the Years of Experience Pill next to Columns.

    SUM(Years of Experience), SUM(Grants) with Measure (Sum) and Average outlined with red boxes

  9. Our next problem is that it is plotting just one x/y pair – the averages of the whole dataset. We need to plot the points either for each Author, Country, or Institution. Let’s do it by Author. This is where that Details box comes up. If you drag Author over it, it explodes out the aggregation to plot it by Author.

    Author under the Tables menu on the left and Detail under the Marks label are outlined with red boxes

    When you hover over a point, you can see the details.

    Scatter Plot shown

  10. You may notice there is now also another box on the Marks card called Shape. If you want to add another categorical variable to your Scatter Plot, you could do so by using different shapes to represent different categories. Drag Institution on to the Shape box. Now you should see that there is a legend on the right, using different shapes for different institutions.

    Institution under the Tables menu, Shape under the Marks label is outlined with red boxes. Institution legend shown and outlined with a red box at the top right

  11. If you want to add trend lines in Tableau, right-click in the centre and select Trend Lines -> Show Trend Lines.

    Trend Lines and Show Trend Lines are outlined with red boxes

    Hovering over the lines also gives you statistical information, such as P-values.

    Scatter Plot shown

  12. Finally, one interesting feature of Tableau is to create not just one visualization, but a series of them, using the Pages shelf. Drag Year on to the Pages shelf.

    Year under the Tables menu and Pages in the centre area are outlined with red boxes

    Now you should see some controls on the right. The user can scroll through three different Scatter Plots, one for each year, or they can click on the Play button to have it animate through the years.

    Year scatter plots control bar outlined with a red box

Technique: Data Visualization | Tools: Tableau


First created: August 31, 2022
Last updated: May 08, 2026

Tutorial maintained by Kelly Schultz.

Tutorial created by Kelly Schultz.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon