Use variable label instead of variable name in a graph`

Reply
New Contributor
Posts: 3

Use variable label instead of variable name in a graph`

I am using- ods graphics to obtain my graphs, what I can figure out is how to use the variable label instead of the variable name (which is usually kind of cryptic!)!

Respected Advisor
Posts: 4,919

Re: Use variable label instead of variable name in a graph`

ODS graphics does use variable labels on axes labels:

data class;

set sashelp.class;

label weight="Weight (pounds)";

run;

proc sgplot;

scatter x=height y=weight;

run;

SGPlot.png

PG

PG
New Contributor
Posts: 3

Re: Use variable label instead of variable name in a graph`

here is what happens

ods graphics on;

proc logistic data=stage3concurrent plots(only)=oddsratio  (type=horizontalstat range=(0,3))  ;

CLASS urban regionvisn yeargroup (ref='2001-2004') EPvsTC stage numsquam;

model EPvsTC (event='Cisplatin and Etoposide')= yeargroup stage numsquam priorhosp age10 poslostweightperc fullhgb fullalb chrlson egfr2 /  risklimits lackfit rsquare parmlabel;

units egfr2=10 priorhosp=1 age10=1 poslostweightperc=1 fullhgb=1 fullalb=1 chrlson=1;

run;

ORPlot.png

how can a change the labels on the graph to the variable label?

Super User
Posts: 19,770

Re: Use variable label instead of variable name in a graph`

You'll probably have to modify the template Smiley Sad

Ask a Question
Discussion stats
  • 3 replies
  • 593 views
  • 0 likes
  • 3 in conversation