/*--Legend Line Length--*/ ods graphics / reset width=5in height=3in imagename='LegendLine'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32; run;
/*--Legend Line Length and Swatch--*/ ods graphics / reset width=5in height=3in imagename='LegendLineScale'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32 ...
/*--Legend Line Length and Swatch--*/ ods graphics / reset width=5in height=3in imagename='LegendLineAspect'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32...
/*--Legend Swatch--*/ ods graphics / reset width=5in height=3in imagename='DeathsUnicode'; title 'Counts by Death Cause and Age Group'; proc sgplot data=sashelp.heart(where=(deathcause ne 'Unknown')) nocycleattrs noborder; format ageatdeath agegroupUnicode.; vbar ageatdeath / group=deathcaus...
/* Modify points of scatterplot with MARKERATTRS= */ PROC SGPLOT data = random_norm; SCATTER X=x Y=y / MARKERATTRS = (SYMBOL = STAR SIZE = 4MM); TITLE "MARKERATTRS options"; RUN;
/* Exemple 2 : Utilisation avec des options courantes (MAXLEVELS et DESCENDING) */ /* Analyse de SepalLength avec un nombre limité de niveaux affichés et tri décroissant */ proc cardinality data=mycas.iris outcard=mycas.card_sepal_full outdetails=mycas.details_sepal_full maxlevels=10 descending; ...
/* Exemple 3 : Cas Avancé - Analyse des niveaux de SepalLength > 4.7 et visualisation */ proc cardinality data=mycas.iris (where=(SepalLength > 4.7)) outcard=mycas.card_sepal_gt47 outdetails=mycas.details_sepal_gt47 maxlevels=5; /* Li...
proc sgplot data=practice.athelate; vbox SBP; yaxis grid; title "Boxplot of SBP Variable From Athelate data";
proc sgplot data=Practice.Athelate; hbox SBP; title "Horizontal Boxplot of SBP Variable From Athelate data";
proc sgplot data=sim; reg x=s y=y / CLM CLI; run;