Example: Create a Panel That Uses an Attribute Map

This example uses the SGPANEL procedure to generate SG attribute map output.
Panel That Uses an SG Attribute Map
Panel That Uses an SG Attribute Map
Here is the SAS code that creates the attribute map data set and runs the SGPANEL procedure.
This DATA step creates the SG attribute map data set. The data set contains one attribute map, which is specified by the ID variable. All ID values for the attribute map are MYID.
data attrmap;
retain ID "myid";
retain markersymbol "circlefilled";
input value $ markercolor $ linecolor $ linepattern $;
datalines;
F  orange  orange  solid
M  blue    blue    solid
;
run;
This PROC step generates the graph. The SGPANEL statement references the SASHELP.CLASS data set and the ATTRMAP attribute map data set. The plot statement references the attribute map ID (MYID).
title "Height and Weight by Age";
proc sgpanel data=sashelp.class dattrmap=attrmap;
panelby age;
reg x=weight y=height / group=sex attrid=myid;
run;
title;