Help using Base SAS procedures

How do you edit a reference line in proc gplot

Reply
Occasional Contributor
Posts: 10

How do you edit a reference line in proc gplot

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

PROC Star
Posts: 7,467

Re: How do you edit a reference line in proc gplot

Posted in reply to PatriciaEilerman

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

Occasional Contributor
Posts: 10

Re: How do you edit a reference line in proc gplot

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.

PROC Star
Posts: 7,467

Re: How do you edit a reference line in proc gplot

Posted in reply to PatriciaEilerman

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

Occasional Contributor
Posts: 10

Re: How do you edit a reference line in proc gplot

What about proc gplot since I'm using proc gplot code from a code worker?

Ask a Question
Discussion stats
  • 4 replies
  • 310 views
  • 0 likes
  • 2 in conversation