* Pearson Example Create scatterplots of the Pearson's historical dataset. The dataset contains 1079 bivariate observations: x = heights of fathers, y = heights of sons; options ls=64 nodate pageno=1; data heights; infile 'c:/datasets/pearson.txt' firstobs=2; input father son; label father='Height of Father (in)' son='Height of Son (in)'; * Compute correlations between father's heights and son's heights; proc corr; * Create low resolution typewriter plot of heights; proc plot; plot son*father; * Create traditional SAS/GRAPH plot of heights; proc gplot; plot son*father; * Create more modern SGPLOT, which is compatible with ods graphics; proc sgplot; scatter x=father y=son; run; quit;