Seeing many variables at once
Facets, pair plots, parallel coordinates, biplots and embeddings, and what not to read from a t-SNE map.
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
Adding a third variable
ReadEach 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.
View data
| month | revenue_k | product_line |
|---|---|---|
| 1,640,995,200,000 | 124.30 | Analytics |
| 1,640,995,200,000 | 200.80 | Compute |
| 1,640,995,200,000 | 86.500 | Storage |
| 1,640,995,200,000 | 42 | Security |
| 1,640,995,200,000 | 60.900 | Networking |
| 1,640,995,200,000 | 57.700 | Support |
| 1,643,673,600,000 | 127.60 | Analytics |
| 1,643,673,600,000 | 205.30 | Compute |
| 1,643,673,600,000 | 82.200 | Storage |
| 1,643,673,600,000 | 41.700 | Security |
| 1,643,673,600,000 | 65.300 | Networking |
| 1,643,673,600,000 | 57.800 | Support |
| 1,646,092,800,000 | 121.30 | Analytics |
| 1,646,092,800,000 | 211.80 | Compute |
| 1,646,092,800,000 | 93.100 | Storage |
| 1,646,092,800,000 | 43.300 | Security |
| 1,646,092,800,000 | 63 | Networking |
| 1,646,092,800,000 | 54.800 | Support |
| 1,648,771,200,000 | 131.10 | Analytics |
| 1,648,771,200,000 | 225.40 | Compute |
| 1,648,771,200,000 | 93.500 | Storage |
| 1,648,771,200,000 | 44.500 | Security |
| 1,648,771,200,000 | 65.400 | Networking |
| 1,648,771,200,000 | 52.600 | Support |
| 1,651,363,200,000 | 131 | Analytics |
| 1,651,363,200,000 | 218.30 | Compute |
| 1,651,363,200,000 | 88.500 | Storage |
| 1,651,363,200,000 | 45.800 | Security |
| 1,651,363,200,000 | 62.800 | Networking |
| 1,651,363,200,000 | 52.700 | Support |
| 1,654,041,600,000 | 131.10 | Analytics |
| 1,654,041,600,000 | 216.60 | Compute |
| 1,654,041,600,000 | 97.100 | Storage |
| 1,654,041,600,000 | 48.300 | Security |
| 1,654,041,600,000 | 63 | Networking |
| 1,654,041,600,000 | 53 | Support |
| 1,656,633,600,000 | 134.70 | Analytics |
| 1,656,633,600,000 | 214.90 | Compute |
| 1,656,633,600,000 | 101.60 | Storage |
| 1,656,633,600,000 | 47 | Security |
| 1,656,633,600,000 | 59.800 | Networking |
| 1,656,633,600,000 | 52.600 | Support |
| 1,659,312,000,000 | 139.80 | Analytics |
| 1,659,312,000,000 | 230.40 | Compute |
| 1,659,312,000,000 | 96.300 | Storage |
| 1,659,312,000,000 | 49.500 | Security |
| 1,659,312,000,000 | 66.600 | Networking |
| 1,659,312,000,000 | 51.300 | Support |
| 1,661,990,400,000 | 142.60 | Analytics |
| 1,661,990,400,000 | 235.10 | Compute |
| 1,661,990,400,000 | 102.70 | Storage |
| 1,661,990,400,000 | 53.100 | Security |
| 1,661,990,400,000 | 60.300 | Networking |
| 1,661,990,400,000 | 51.300 | Support |
| 1,664,582,400,000 | 163.60 | Analytics |
| 1,664,582,400,000 | 243.60 | Compute |
| 1,664,582,400,000 | 102.80 | Storage |
| 1,664,582,400,000 | 64.300 | Security |
| 1,664,582,400,000 | 71.200 | Networking |
| 1,664,582,400,000 | 54 | Support |
First 60 of 288 rows.
Parallel coordinates
ExploreParallel coordinates give each variable its own vertical axis, and each row is a line across them.
View data
| mpg | cylinders | displacement | horsepower | weight | acceleration | origin |
|---|---|---|---|---|---|---|
| 23 | 4 | 165 | 107 | 2,855 | 17.800 | Europe |
| 34 | 4 | 146 | 79 | 2,633 | 19.600 | Japan |
| 35.900 | 4 | 113 | 62 | 2,719 | 17.200 | Japan |
| 23.900 | 6 | 254 | 126 | 3,344 | 14 | USA |
| 29.800 | 4 | 154 | 98 | 2,657 | 18.100 | USA |
| 33.400 | 4 | 138 | 87 | 2,358 | 17.100 | USA |
| 30.100 | 4 | 125 | 75 | 3,058 | 16.100 | Japan |
| 32.800 | 4 | 187 | 122 | 2,677 | 15 | Japan |
| 24.600 | 8 | 268 | 157 | 3,180 | 13 | USA |
| 32.100 | 4 | 138 | 88 | 2,603 | 16.600 | Europe |
| 30.700 | 6 | 214 | 117 | 3,011 | 13.300 | Japan |
| 27.400 | 4 | 170 | 98 | 2,982 | 17.700 | Japan |
| 36 | 4 | 118 | 94 | 2,213 | 14.300 | Europe |
| 26.400 | 6 | 194 | 141 | 2,825 | 13.700 | USA |
| 25.400 | 8 | 312 | 174 | 3,756 | 13.900 | USA |
| 28.700 | 4 | 156 | 89 | 2,621 | 14.900 | Europe |
| 37.100 | 4 | 173 | 120 | 2,216 | 16.700 | Japan |
| 27.500 | 6 | 237 | 111 | 2,724 | 17 | Europe |
| 25.800 | 6 | 248 | 129 | 3,549 | 14.400 | USA |
| 33.700 | 4 | 173 | 114 | 2,881 | 13.500 | Japan |
| 33.400 | 6 | 245 | 155 | 2,926 | 13.600 | Japan |
| 27.900 | 6 | 199 | 101 | 3,020 | 13.900 | USA |
| 33.400 | 4 | 160 | 96 | 2,886 | 15.600 | Japan |
| 35.900 | 4 | 153 | 95 | 2,552 | 17.100 | USA |
| 27.700 | 4 | 133 | 82 | 2,489 | 17.200 | Europe |
| 32.200 | 4 | 161 | 87 | 3,005 | 19.100 | Europe |
| 37.300 | 4 | 140 | 100 | 2,424 | 16.600 | Japan |
| 28.100 | 8 | 296 | 145 | 3,449 | 13 | USA |
| 38.200 | 4 | 142 | 118 | 2,257 | 12.300 | Japan |
| 20.800 | 8 | 296 | 155 | 4,344 | 13.300 | USA |
| 33.700 | 4 | 150 | 106 | 2,756 | 16.500 | Japan |
| 23.600 | 8 | 303 | 162 | 3,807 | 13.900 | USA |
| 31.200 | 4 | 162 | 91 | 2,511 | 15.200 | USA |
| 26.900 | 6 | 225 | 131 | 3,098 | 14.700 | USA |
| 31.400 | 4 | 143 | 113 | 2,588 | 15 | Europe |
| 35.900 | 4 | 147 | 84 | 2,332 | 20 | Japan |
| 35.700 | 6 | 210 | 112 | 2,926 | 16.400 | Japan |
| 39.100 | 4 | 105 | 37 | 2,171 | 22.300 | Japan |
| 30 | 4 | 186 | 109 | 2,835 | 15.100 | Europe |
| 28.300 | 4 | 175 | 117 | 2,785 | 15.700 | Japan |
| 29.100 | 6 | 227 | 131 | 3,318 | 14.900 | Japan |
| 31.500 | 4 | 169 | 107 | 2,788 | 15.700 | Japan |
| 23.900 | 8 | 344 | 168 | 3,480 | 14.200 | USA |
| 29.400 | 4 | 166 | 101 | 2,823 | 15.300 | Japan |
| 34.100 | 4 | 155 | 102 | 2,777 | 15.500 | Japan |
| 31.800 | 4 | 182 | 139 | 2,710 | 15.300 | Japan |
| 24.100 | 6 | 210 | 113 | 3,239 | 15.900 | USA |
| 22.700 | 8 | 284 | 146 | 3,325 | 13.900 | USA |
| 27.200 | 8 | 296 | 150 | 3,112 | 14 | USA |
| 32.300 | 4 | 158 | 93 | 2,956 | 15.900 | Japan |
| 23.100 | 8 | 322 | 160 | 3,633 | 13.900 | USA |
| 21.300 | 8 | 342 | 190 | 3,893 | 10.900 | USA |
| 27.700 | 4 | 153 | 79 | 2,663 | 16 | Europe |
| 31.400 | 4 | 189 | 103 | 2,753 | 15.300 | Europe |
| 32 | 6 | 240 | 143 | 3,103 | 13.700 | USA |
| 29.500 | 6 | 211 | 109 | 3,057 | 15.200 | USA |
| 30.300 | 6 | 219 | 110 | 2,839 | 15.700 | USA |
| 22 | 8 | 322 | 160 | 3,601 | 12.700 | USA |
| 37.300 | 4 | 127 | 90 | 2,149 | 16.300 | Europe |
| 26 | 6 | 257 | 122 | 3,340 | 15.500 | USA |
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.
Reduce, then look
ReadA 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.
View data
| PC1 (62%) | PC2 (25%) | kind | label |
|---|---|---|---|
| 2.314 | −0.0780 | point | Florida |
| 1.958 | 1.783 | point | Nevada |
| 1.255 | 1.794 | point | California |
| 2.409 | 0.1220 | point | Michigan |
| 0.6090 | 0.9510 | point | New York |
| 2.534 | 1.999 | point | Texas |
| 0.9480 | 0.4940 | point | Illinois |
| 2.774 | 1.033 | point | Arizona |
| 1.688 | 1.041 | point | Maryland |
| 2.064 | 1.510 | point | New Mexico |
| −0.8290 | −0.2440 | point | Vermont |
| −0.9960 | −0.8780 | point | North Dakota |
| −1.583 | −0.6100 | point | Maine |
| −2.040 | −0.3830 | point | Iowa |
| −1.774 | −0.6460 | point | New Hampshire |
| −1.933 | −1.059 | point | Wisconsin |
| −0.7750 | 0.0950 | point | Idaho |
| −1.834 | −0.3300 | point | Minnesota |
| −1.850 | −1.505 | point | Utah |
| −0.2530 | −1.311 | point | Ohio |
| −0.5540 | −1.028 | point | Georgia |
| 0.6060 | −0.9470 | point | Alabama |
| 0.7160 | −1.432 | point | Mississippi |
| 1.095 | −1.315 | point | Louisiana |
| 0.5400 | −0.4200 | loading | Murder |
| 0.5800 | −0.1900 | loading | Assault |
| 0.2800 | 0.8700 | loading | UrbanPop |
| 0.5400 | 0.1700 | loading | Rape |
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.
What can a t-SNE map tell you?
PredictPredict 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?
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.
See the pitfalls
ExploreChange 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…
Ten-dimensional data
Method
Commit your prediction above to see the result
Make your prediction to see the result.
In the app
In the appIn 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.
Check your understanding
CheckpointCheck 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.
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.