Doing a adverse event plot were I have to put some stat numbers together with a scatter plot (see below). Now I want the stat numbers to be right aligned with the tickmark at the x axis (see red inserted line).
proc template;
define statgraph demo;
begingraph ;
layout overlay;
scatterplot y=name x=w / markercharacter =weightc MARKERCHARACTERPOSITION=left xaxis=x2;
scatterplot y=name x=h / markercharacter =height MARKERCHARACTERPOSITION=left xaxis=x2;
endlayout;
endgraph;
end;
run;
data class2;
set sashelp.class;
weightc=put(weight,4.1);
heightc=put(height,4.1);
w="kg";
h="cm";
run;
proc sgrender data=class2 template=demo;
run;
Have created a little sandbox example using the good old sashelp.class :-). Any ideas on how to solve this?
... View more