Dear R- experts,

 

I am trying to superimpose two or more scatterplot matrices generated by pairs() to visualize the differences over each datasets, but have not been very successful. Two data frames, df1 and df2 for example, each has the same five variables in columns.

My goal is to paint each dataset with a color on the same plot panel for each pair of the five variables.

That is, in this example a 5x5 matrix consists 25 panels, and each panel would have two datasets with two different colors.

 

Any comments and suggestions are welcome.

 

Best,

PingHsun


	[[alternative HTML version deleted]]

