Hello all,
I'm repeating an old experiment (with new samples), which used a scatter plot matrix to summarized relationships between several characteristics of the samples. The earlier study further binned the samples into 2 categories and displayed them in a single plot using colored markers (blue for category 1, red for category 2). Its straightforward to do this in a regular twoway scatter plot by making if restrictions and using 2 overlaid scatter plots
but when I try this with graph matrix I'm informed it is not a twoway type.
Has anyone solved a similar display challenge?
Thank you for your time
John Wallace
I'm repeating an old experiment (with new samples), which used a scatter plot matrix to summarized relationships between several characteristics of the samples. The earlier study further binned the samples into 2 categories and displayed them in a single plot using colored markers (blue for category 1, red for category 2). Its straightforward to do this in a regular twoway scatter plot by making if restrictions and using 2 overlaid scatter plots
Code:
sysuse auto graph twoway (scatter weight mpg if foreign==0) (scatter weight mpg if foreign==1)
Code:
graph twoway (matrix weight mpg displacement if foreign==0)(matrix weight mpg displacement if foreign==1)
Thank you for your time
John Wallace

Comment