tile charts from .csv file.

Hi all,
I would like to read a .csv file and create a matrix of scatter plots that are from columns

1 vs 4 , 2 vs 4, 3 vs. 4
1 vs 5 , 2 vs 5, 3 vs. 5
1 vs 6 , 2 vs 6, 3 vs. 6
etc...

is there an example of this out there? I'm having a brain freeze here.

Thanks!
Answers 4
DH
DH 2009-06-16
If you want to plot everything versus everything, then you can use the R Pairs Plot component. But from your example, it appears that you may want to just plot certain specific columns versus certain other specific columns. If so, then you could create a protocol with the folowing structure:

Use the Delimited Text Text Reader [not a typo] to read two columns of data naming the X and Y properties to plot. Send the reader output into a Run-to-Completion subprotocol that puts X and Y into globals and then (in a separate pipe) reads the csv data and plots $(Y) versus $(X) using XY Chart. Send the output of the subprotocol into Tile Horizontal to arrange the charts into rows and columns, and send the tiled output into a report viewer or writer.
HP
HP 2009-06-17
Leo and Dana,
Thank you for your guidance. Once I gave up on a looping protocol and decided to collapse to a sub-protocol and run to completion I was able to do what I wanted. Your examples were very useful! I'm surprised noone has published a "statistics server" around PP yet.

Many Regards
LB
LB 2009-06-17
I second Dana's points...and generated this example before I realized anyone had answered. (It kept me busy on the plane.)

Leo

The attached protocol just makes all pairwise scatter plots (and density plots, just for fun), for all properties. No listing of which pairs to chart is required.
comment imagecomment image
HP
HP 2011-04-13

Hi,

I just posted an example Pairs Plot, using the Cross Tab. You may find it useful

https://community.accelrys.com/thread/3956