Hello,
I'm currently trying to add reference lines to my gplot and need to know some simple SAS code to create and edit the reference line. For example, I'm going to have a reference line which represent the maximum value= 0.68. I know that vref=0.68 and I know that cvref=green change the reference line color to green. However, how do I add label of this reference line to the legend so it easy for reader to tell difference between the lines. Please answer as soon as possible. Thanks.
Sincerely,
-Patricia
Regarding color I think you are looking for either the cautohref SAS/GRAPH(R) 9.3: Reference, Third Edition or the chref SASo/GRAPH(R) 9.3: Reference, Third Edition options.
As for labels, take a look at: Support.sas.com
I just figure out the colors a couple of minutes ago, but is there a way get reference label in the legend and not to the side. Thanks.
You have a number of options available if you use proc sgplot. see, e.g., SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition
What about proc gplot since I'm using proc gplot code from a code worker?
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.