/****************************************************************************** * Programme : Generation of Connected Scatterplots with SGPLOT * Reference : GENERA1D0B * Source : https://www.wearecas.eu/fr/sampleCode/GENERA1D0B ******************************************************************************/ /* --- BLOC 1 --- */ ods listing gpath="/home/mySASData/resources_github/Graph/Correlation/img" image_dpi=200; ods graphics / reset = all attrpriority=color border = no width =500px height =300px imagename = "connected_scatterplot1" imagefmt = png outputfmt = png antialiasmax = 10000; /* --- BLOC 2 --- */ proc sort data=sashelp.iris out=iris; by petallength petalwidth; run; /* --- BLOC 3 --- */ proc sgplot data=iris; title 'Fisher (1936) Iris Data'; series x=petallength y=petalwidth; run; /* --- BLOC 4 --- */ ods graphics / reset = all attrpriority=color border = no width =500px height =300px imagename = "connected_scatterplot2" imagefmt = png outputfmt = png antialiasmax = 10000; proc sgplot data=iris; title 'Fisher (1936) Iris Data'; series x=petallength y=petalwidth / group=species DATASKIN=PRESSED; run;