I have a query to ask. I am in the process of annotating my gplot in sas 9.2. I have used reflabels to name my vref. The problem is the text is hardly visible with all the data. I have tried to change the colours to see if i can make it more visible. But it doesnt seem to work.
I was wondering if its possible to make the reflabels appear outside the plotted data ie the frame
Message was edited by: neophyte
There are a few alternatives. If you stick with GPLOT, you may be able to set the axis length in a way to reserve space for an outside reflabel, and you can annotate the label. Instead of moving it outside, you may also be able to set an axis offset to make room for the label. Another alternative is to use SGPLOT instead, which has an option to put the refline labels inside or outside of the data area. If your interested in trying SGPLOT, just post more information about what you're trying to plot and I'll see if I can give you some SGPLOT code to make it.
Also I wanted to ask if I wanted to have more than 1 refline (with different colours/patterns/thickness/labels), then do I have to create a new refline everytime or I can do as following:
refline &A &B &C… / labelloc=outside lineattrs=refcurrslp pattern=3 thickness=2 color=(grey black blue) LEGENDLABEL= ("LabelA" “LabelB”… name="A" “B”;
Waiting Dan answer,
check ERROR 79-322: Expecting a (.
with a resubmit with mprint option
something in the text substitued by the way of a macro variable
is invalid at line 322 of your past submitted log
so you should perhaps find by your self the solution to your problem
and lineattr=( ) was written so in dan's code
Message was edited by: Andre
The only thing that can be out of the parens is a style element reference.
To answer your other question, you can specify multiple values on a REFLINE statement (even a column variable), but they will all have the same attributes. For unique attributes, you have to use multiple statements.