04-13-2017 03:31 PM - edited 04-13-2017 03:36 PM
I am trying to modify the axis label of a waterfall plot. As it's a waterfall plot, the original id is resort from 1, but is it possible to show the original id in the axis? It can be done with 'value' option, however what if I create multiple pages at the same time(which means I use a 'by' statement)? Can I use the original id variable(subjid)? Below is my code:
proc sgplot data=all dattrmap=attrmap; by cohort; refline -30 20 / axis=y lineattrs=(pattern=shortdash); vbar id / response=pchg group=avalc attrid=RESP; xaxis label="Subject" fitpolicy=thin; yaxis label="Change from baseline (%)" values=(-100 to 180 by 20); keylegend / location=inside down=1; run;
04-13-2017 07:06 PM
You are really asking us to guess what "an original id" may be. Is it a variable in that data? If so which one?
You might consider a format and use the TICKVALUEFORMAT to reference that.