i used macro here in order to customize the size of the fonts of the graph.
However, I cannot get the legend of the proc lifetest plot to be larger. I need it for a poster and to be at least 25 pts. Is there anyone that can help.
Thanks
Shirley
Hello Shirley,
I'm not familiar with the Graph Template Language, but looking at the macro code I think the DISCRETELEGEND statements are the places where to specify font sizes (and other text attributes) for the corresponding legends.
According to the documentation you can specify text attributes for the legend title and legend values separately. The respective options are named TITLEATTRS= and VALUEATTRS= and they go after the slash in the DISCRETELEGEND statement, where you see already other options such as LOCATION=. Their values can take different forms. One example is:
valueattrs=(size=25 pt)
(and similarly for TITLEATTRS). Please see the documentation for more details.
Hi thank you so much that worked perfectly? Another quick question. Is there a way of thinkening the lines in the legend and on the graph?
Sorry to bug you.
I guess that the line thickness should ideally be specified in some style definition (which I'm not familiar with). But, according to the documentation of the STEPPLOT statement, it should also be possible to specify something like
lineattrs=(thickness=3 pt)
in the options of that statement (again, after the slash), which occurs in the SingleStratum and MultipleStrata macros.
The above will probably not affect the line thickness in the legend. For this, you could try the option
autoitemsize=true
which needs to be added to the DISCRETELEGEND statement. If this doesn't have the desired effect, I would look into the LEGENDITEM statement.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.