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?
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.