BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fastb
Fluorite | Level 6

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);

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

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:

http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p0kroq43yu0lspn16hk1...

 

View solution in original post

2 REPLIES 2
Jay54
Meteorite | Level 14

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:

http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p0kroq43yu0lspn16hk1...

 

fastb
Fluorite | Level 6

Thank you so much Sanjay; that is the information that I needed!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1172 views
  • 0 likes
  • 2 in conversation