Subscribe Bookmark

Staff

Joined:

Jun 23, 2011

Parallel coordinates in JMP 13

The biggest addition to Graph Builder in JMP 13 is a new element for parallel coordinates plots. JMP has long supported parallel coordinates plots as a separate platform, and integration into Graph Builder both expands the functionality and leverages core Graph Builder features like legends and grouping.

Categorical and continuous variables graphed with parallel coordinates

What is a parallel coordinates plot?

A parallel coordinates plot is an efficient way to visualize high dimensional data; however, it’s one of those chart types that requires a little explanation. For me, the first step in understanding parallel coordinates is to characterize “normal” graphs as using perpendicular coordinates. For comparison, here is the same two-variable data set shown using perpendicular coordinates and parallel coordinates.

Perpendicular weight and height    Parallel weight and height

In perpendicular coordinates, each observation is represented by a point at a two-dimensional location; in parallel coordinates, each observation is represented by a line connecting two (or more) one-dimensional locations. I colored three observations in the above plots to help show the correspondence. The orange observation, for instance, is at weight=80 and height=51 in both graphs. For only two variables, perpendicular coordinates are far better, but this simple example helps to illustrate how the variables are encoded in the chart.

Parallel coordinates can be extended to any number of dimensions since all the dimensions are parallel to one another. For perpendicular coordinates, even three dimensions is pushing it on a flat surface. For more dimensions we can start adding color, size and trellising, but each of those loses some efficiency over pure positional representation, and we eventually run out of visual dimensions anyway.

Here’s a GIF showing the creation of a parallel view of the Fisher iris data set showing four continuous dimensions plus color. All the continuous dimensions participate equally. Order is important for seeing patterns, so interactions include the ability to directly rearrange and flip individual axes.

Creating a parallel coordinates graph in Graph BuilderParallel coordinates can be useful for getting a quick view of an entire data set, but the more common use is in visualizing clusters, such as the iris species above. When the clustering has been computed by an algorithm, a parallel coordinate view can be a useful diagnostic.

Categorical variables

Categorical variables can be mixed with continuous variables, as shown in the first image of this post. When two categorical variables are next to each other, they are connected with a band whose width is proportional to the number of items. With some data sets, you can use this feature to get a Sankey-type chart.

Using parallel coordinates to visualize a flow

I hope you will give parallel coordinates a try in JMP 13, and let me know what you think. Want to try JMP? Download the free trial.

Staff

Great examples, @xan_jmp!

Community Trekker

beautiful figures and very nicely demonstrated with the GIF.  These types of figures take a lot of time and effort to program using other software packages and it's so nice to see this functionality added in JMP.  thanks!

Community Trekker

It is nice to know JMP have added this feature to be competitive with other software.

But I have a question on visualisation, how do you interpret the last graph? Seems like putting a percentage number on how many type-a patients pass different stages is more meaningful. Can't seems to see any patterns in the graph other than more failures at later stage and type-c.

Staff
Thanks for the comment and question. Maybe I should have planted a stronger pattern in the last graphic to make its case better. As a visual (without the numbers) it lets you see any really unusual changes in sizes or colors, which will be more meaningful if you're comparing lots of similar such charts. And because the groups split as you go across, you can follow groups as they "flow" through the stages. Group "a" fails very little in stage 1 or stage 2, but fails at a high rate in stage 3. Group "c" has a lot of failures in stages 1 and 2 but none in stage 3.

Community Trekker
Very nice graphs. I already use parallel plots through the Mutlivariate platform, in order to find specific profiles between items in psychometric scales. But I really don't know how to obtain those Sankey plots. Could you please give us an example (data and syntax)?
Staff

Thanks, @yvesa_roy. I attached flow1.jmp which contains a script for the Sankey-type chart. The trick is to take advantage of the was the parallel coordinates element draw filled bands instead of lines for categorical variables. In the example, type, stage 1, stage 2, and stage 3 are all categorical variables.

Community Trekker

Spendid!

And thank you very much @XanGregg, indeed. I found my mistake: instead of typing multiple lines per condition (a, pass, pass...), I tried to simplify the data set by typing only one line per combination and adding a variable with the frequency role. Bad idea!

Community Member

Like the last commenter (yvesa_roy), I have my data structured so that there is a frequency column. Is there is an easy way to convert this into the form required for parallel graphing? Thank you!

Staff
This add-in may help. It has a feature described as "Expand a table using frequency counts (unsummarize rows)." https://community.jmp.com/t5/JMP-Add-Ins/Data-Table-Tools-Add-in/ta-p/28582
Community Member

Perfect! For other users: From the Data Table Tools add-in, select Reshape Tables > Unsummarize Rows. Select the row you want converted from frequency to long-form, and voila!

Article Tags