Could you teach me how to use SAS to make three plots by usi
Could you teach me how to use SAS to make three plots by using the data above (the data is much more bigger and saved in a txt file): one plot of weight-by-height for
 men, one for weight-by-height of women, and one plot with both men
 and women, but with the men and women distinguished by different
 symbols. Specific steps(codes) could be helpful. Thank you so much!
Solution
First of all you need to import your data in SAS library.
For a comma separated values format, you can use-
And, for a tab separated values you can use -
------------------------------------------------------------------------------------------
Once, the data is imported, you can simply plot the required graphs as follow-
1) Weight by Height for men -
proc gplot data=library_name.mydata;
plot Weight*Height / Sex=M;
run;
-----------------------------------------------
2) Weight by Height for Women -
proc gplot data=library_name.mydata;
plot Weight*Height / Sex=F;
run;
-------------------------------------------------------------------
3) plot with both men and women, but with the men and women distinguished by different
 symbols.

