I am trying to overlay two sets of data (one for males and one for females) on one scatterplot, but I don't know how to do this. I will greatly appreciate any input you can provide me on this matter. This is the code I have so far, but it plots the two sets of data on separate plots, and I want to fix this. Thank you!
CODE:
DATA female;
INPUT mass rate;
cards;
36.1 995
54.6 1425
48.5 1396
42.0 1418
40.3 1189
33.1 913
42.4 1124
34.5 1052
51.1 1347
41.2 1204
;
DATA male;
INPUT m_mass m_rate;
cards;
62.0 1792
62.9 1666
47.4 1362
48.7 1614
51.9 1460
51.9 1867
46.9 1439
;
proc sgplot data=female;
scatter x=mass y=rate;
proc sgplot data=male;
scatter x= m_mass y= m_rate;
run;