I am creating a scatter plot using GTL (code excerpt below) using the variable entry as the grouping variable.
Where can I find a list that tells me which marker symbol corresponds with each value of the the variable entry?
I tried displaying the legend but that doesn't work because there are more than 20 unique values in the vraibale entry so it won't display the entire legend in the plot.
PROC TEMPLATE; DEFINE STATGRAPH layoutlattice; BEGINGRAPH / designheight = 6.6in DESIGNWIDTH=3.3in;
layout lattice / rowweights=(.46 .54) rowgutter = 0
columns = 1 rows = 2 rowdatarange = data columndatarange = union;
LAYOUT OVERLAY / WIDTH = 100pct HEIGHT = 80pct
YAXISOPTS=(labelattrs = (size = 11pt family= "Times New Roman")
tickvalueattrs = (family = "Times New Roman" size = 9pt)
GRIDDISPLAY = OFF LABEL = "Reference Hybrid")
XAXISOPTS = (DISPLAY = NONE);
SCATTERPLOT X=isoline_mean_ref Y=ref_mean / markerattrs = (color = black) GROUP = entry;
LINEPARM X=0 Y=0 SLOPE=1 / LINEATTRS = (COLOR = gray);
Normally, a style has 7 different marker symbols. These get rotated with colors to provide up to 84 combinations. You can find these if you look up the GraphData1-12 style elements in the appropriate Style template file in SASHELP.Tmplmst->Styles->stylename. Normally these are circle, plus, x, triangle, square, asterix and diamond.
If the style you are using is HTMLBlue, then all 12 colors are cycled for each symbol, before the next symbol is used. so, you will likely see only 2 symbols for 20 groups. You can set ATTRPRIORITY=none in the ODS GRAPHICS statement to get cycling of both color and marker for each group.
You can also increase the space for the legend by setting MAXLEGENDAREA=40 or higher to provide more space for legends on the ODS GRAPHICS statement:
Normally, a style has 7 different marker symbols. These get rotated with colors to provide up to 84 combinations. You can find these if you look up the GraphData1-12 style elements in the appropriate Style template file in SASHELP.Tmplmst->Styles->stylename. Normally these are circle, plus, x, triangle, square, asterix and diamond.
If the style you are using is HTMLBlue, then all 12 colors are cycled for each symbol, before the next symbol is used. so, you will likely see only 2 symbols for 20 groups. You can set ATTRPRIORITY=none in the ODS GRAPHICS statement to get cycling of both color and marker for each group.
You can also increase the space for the legend by setting MAXLEGENDAREA=40 or higher to provide more space for legends on the ODS GRAPHICS statement:
Thank you so much Sanjay; that is the information that I needed!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.