Skip to content

srosanba/sas-parallel-coordinates-plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Coordinates Plot in SAS

A parallel coordinates plot is used to visualize multivariate data (google image results). Producing a parallel coordinates plot in SAS is not straightforward. There definitely isn’t a PARALLEL statement in SGPLOT. The best approach I could find on lexjansen.com was from SAS author Prashant Hebbar. The outlined process certainly works, but it's written for readability and not for flexibility or scalability. I decided to experiment to see if was possible to generate a parallel coordinates plot using more flexible and scalable code. The result of this experiment is a macro called %parallelplot which is capable of producing a parallel coordinates plot with a minimum of parameters.

Example 1: plotting based on percentiles.

%parallelplot
   (data=sashelp.iris
   ,var=sepallength sepalwidth petallength petalwidth
   ,group=species
   );

parallel percentiles

Example 2: plotting based on data values.

%parallelplot
   (data=sashelp.iris
   ,var=sepallength sepalwidth petallength petalwidth
   ,group=species
   ,axistype=datavalues
   );

parallel datavalues

See the wiki for more details on %parallelplot.

About

Parallel Coordinates Plot in SAS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages