Skip to content

Seeing many variables at once

Facets, pair plots, parallel coordinates, biplots and embeddings, and what not to read from a t-SNE map.

Applied ~10 min8 steps

You will be able to

  • Add a third variable with color or facets
  • Read a biplot and parallel coordinates
  • Avoid common misreadings of t-SNE and UMAP maps

Read first

01

Adding a third variable

Read

Each extra variable costs clarity, so choose how to add it:

  • Facets repeat the chart per group, and are the clearest for categories.
  • Color works for a few groups.
  • Size, in a bubble chart, shows rough magnitude only.

Beyond three or four variables, you need a different approach.

Small multiplesHow do many series compare without tangling into spaghetti?
View data
monthrevenue_kproduct_line
1,640,995,200,000124.30Analytics
1,640,995,200,000200.80Compute
1,640,995,200,00086.500Storage
1,640,995,200,00042Security
1,640,995,200,00060.900Networking
1,640,995,200,00057.700Support
1,643,673,600,000127.60Analytics
1,643,673,600,000205.30Compute
1,643,673,600,00082.200Storage
1,643,673,600,00041.700Security
1,643,673,600,00065.300Networking
1,643,673,600,00057.800Support
1,646,092,800,000121.30Analytics
1,646,092,800,000211.80Compute
1,646,092,800,00093.100Storage
1,646,092,800,00043.300Security
1,646,092,800,00063Networking
1,646,092,800,00054.800Support
1,648,771,200,000131.10Analytics
1,648,771,200,000225.40Compute
1,648,771,200,00093.500Storage
1,648,771,200,00044.500Security
1,648,771,200,00065.400Networking
1,648,771,200,00052.600Support
1,651,363,200,000131Analytics
1,651,363,200,000218.30Compute
1,651,363,200,00088.500Storage
1,651,363,200,00045.800Security
1,651,363,200,00062.800Networking
1,651,363,200,00052.700Support
1,654,041,600,000131.10Analytics
1,654,041,600,000216.60Compute
1,654,041,600,00097.100Storage
1,654,041,600,00048.300Security
1,654,041,600,00063Networking
1,654,041,600,00053Support
1,656,633,600,000134.70Analytics
1,656,633,600,000214.90Compute
1,656,633,600,000101.60Storage
1,656,633,600,00047Security
1,656,633,600,00059.800Networking
1,656,633,600,00052.600Support
1,659,312,000,000139.80Analytics
1,659,312,000,000230.40Compute
1,659,312,000,00096.300Storage
1,659,312,000,00049.500Security
1,659,312,000,00066.600Networking
1,659,312,000,00051.300Support
1,661,990,400,000142.60Analytics
1,661,990,400,000235.10Compute
1,661,990,400,000102.70Storage
1,661,990,400,00053.100Security
1,661,990,400,00060.300Networking
1,661,990,400,00051.300Support
1,664,582,400,000163.60Analytics
1,664,582,400,000243.60Compute
1,664,582,400,000102.80Storage
1,664,582,400,00064.300Security
1,664,582,400,00071.200Networking
1,664,582,400,00054Support

First 60 of 288 rows.

02

Parallel coordinates

Explore

Parallel coordinates give each variable its own vertical axis, and each row is a line across them.

Parallel coordinatesHow do rows compare across many numeric variables at once?
View data
mpgcylindersdisplacementhorsepowerweightaccelerationorigin
2341651072,85517.800Europe
344146792,63319.600Japan
35.9004113622,71917.200Japan
23.90062541263,34414USA
29.8004154982,65718.100USA
33.4004138872,35817.100USA
30.1004125753,05816.100Japan
32.80041871222,67715Japan
24.60082681573,18013USA
32.1004138882,60316.600Europe
30.70062141173,01113.300Japan
27.4004170982,98217.700Japan
364118942,21314.300Europe
26.40061941412,82513.700USA
25.40083121743,75613.900USA
28.7004156892,62114.900Europe
37.10041731202,21616.700Japan
27.50062371112,72417Europe
25.80062481293,54914.400USA
33.70041731142,88113.500Japan
33.40062451552,92613.600Japan
27.90061991013,02013.900USA
33.4004160962,88615.600Japan
35.9004153952,55217.100USA
27.7004133822,48917.200Europe
32.2004161873,00519.100Europe
37.30041401002,42416.600Japan
28.10082961453,44913USA
38.20041421182,25712.300Japan
20.80082961554,34413.300USA
33.70041501062,75616.500Japan
23.60083031623,80713.900USA
31.2004162912,51115.200USA
26.90062251313,09814.700USA
31.40041431132,58815Europe
35.9004147842,33220Japan
35.70062101122,92616.400Japan
39.1004105372,17122.300Japan
3041861092,83515.100Europe
28.30041751172,78515.700Japan
29.10062271313,31814.900Japan
31.50041691072,78815.700Japan
23.90083441683,48014.200USA
29.40041661012,82315.300Japan
34.10041551022,77715.500Japan
31.80041821392,71015.300Japan
24.10062101133,23915.900USA
22.70082841463,32513.900USA
27.20082961503,11214USA
32.3004158932,95615.900Japan
23.10083221603,63313.900USA
21.30083421903,89310.900USA
27.7004153792,66316Europe
31.40041891032,75315.300Europe
3262401433,10313.700USA
29.50062111093,05715.200USA
30.30062191102,83915.700USA
2283221603,60112.700USA
37.3004127902,14916.300Europe
2662571223,34015.500USA

First 60 of 300 rows.

Crossing lines between two axes suggest a negative relationship, and parallel lines suggest a positive one. Axis order changes what you can see, so try a few orders in Charts.

03

Reduce, then look

Read

A PCA biplot draws each row by its first two principal components. Arrows show how the original variables contribute: arrows pointing the same way are positively related.

PCA biplotHow do rows spread on the main components, and which variables drive each direction?
View data
PC1 (62%)PC2 (25%)kindlabel
2.314−0.0780pointFlorida
1.9581.783pointNevada
1.2551.794pointCalifornia
2.4090.1220pointMichigan
0.60900.9510pointNew York
2.5341.999pointTexas
0.94800.4940pointIllinois
2.7741.033pointArizona
1.6881.041pointMaryland
2.0641.510pointNew Mexico
−0.8290−0.2440pointVermont
−0.9960−0.8780pointNorth Dakota
−1.583−0.6100pointMaine
−2.040−0.3830pointIowa
−1.774−0.6460pointNew Hampshire
−1.933−1.059pointWisconsin
−0.77500.0950pointIdaho
−1.834−0.3300pointMinnesota
−1.850−1.505pointUtah
−0.2530−1.311pointOhio
−0.5540−1.028pointGeorgia
0.6060−0.9470pointAlabama
0.7160−1.432pointMississippi
1.095−1.315pointLouisiana
0.5400−0.4200loadingMurder
0.5800−0.1900loadingAssault
0.28000.8700loadingUrbanPop
0.54000.1700loadingRape

It's a shadow of the data. The scree plot tells you how much variation those two axes keep, and when the share is small, the picture leaves most of the story out.

04

What can a t-SNE map tell you?

Predict

Predict first

In a t-SNE map, one cluster looks twice as wide as another, and far away from a third. Can you read those sizes and distances as real?

Yes, a tighter cluster is more similarNo, cluster size and gaps can mislead
Reveal

The answer: No, cluster size and gaps can mislead

No. These methods preserve local neighbors, and they stretch or compress the rest. Sizes and gaps between clusters vary with settings and starts. Read which points are neighbors, then check what you find against the original data.

05

See the pitfalls

Explore

Change the perplexity and the random start. See how the map's shape changes and which neighbors persist.

AExplorable · What t-SNE and UMAP maps don't show

What can you safely read from a t-SNE or UMAP picture?

One group here may be far wider than another in the original space. In the map, that difference in size will be…

How sure?

Ten-dimensional data

Method

30
120
Simulating…

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

06

In the app

In the app

In Discover, maps and clusters come with profiles of each segment. Use those profiles, rather than the picture alone, to say what a group is.

In Charts, try Pair plot with Use my data on four or five columns of your own.

07

Check your understanding

Checkpoint

Check yourself

Two clusters are far apart on a UMAP map. What can you conclude?

Show the answer

Answer: b

Global distances aren't reliably preserved. Compare the groups on their actual values.

Check yourself

You want to see how a scatter relationship differs across six regions. Which option is clearest?

Show the answer

Answer: a

Facets keep each pattern separate, and shared axes keep them comparable.

08

Recap

Recap
  • Facets are usually the clearest way to add a third variable.
  • A biplot is a shadow, so check how much variation it keeps.
  • From t-SNE or UMAP, read neighbors, not sizes or distances.