Exercise: clustering

Our goal in this exercise is to create four clusters out of the countries of the world based on birth rate and infant mortality rate:

  1. Navigate to the Cluster worksheet.
  2. Select the World Indicators data source.
  3. Build the initial view by placing Infant Mortality Rate on the Columns shelf, Birth Rate on the Rows shelf, and Country on the Details shelf.
  4. Right-click on each axis and select Logarithmic and deselect Include Zero. This will spread the data points more uniformly and will help make the visualization more aesthetically pleasing and easier to read.
  1. Note the null indicator in the lower-right corner of the view:
  1. Create a calculated field named cluster with the following code:
SCRIPT_INT(" m <- cbind(.arg1, .arg2); ...

Get Mastering Tableau 2019.1 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.