My code..
ods listing style=listing;
ods graphics / width=5in height=2.81in;
ods graphics / reset=ALL outputfmt=PNG imagename="K_GAD-Metag";
/* Size each graph 4in x 4in */
/*goptions hsize=4in vsize=4in;*/
proc sgplot data=main_subset PCTLEVEL=GRAPH;
where Treatment_group='K_GAD-Metag';
vbar Sample_virus_name / response = Mapped_percent group=replicate groupdisplay = cluster nooutline
stat=mean dataskin=pressed;
xaxis display=(nolabel noticks) discreteorder=data FITPOLICY=STAGGER;
yaxis label="% Target Reads" ;
keylegend /title='' noborder autooutline;
run;
Thank you
I think you can just specify with "VALUES = " on your YAXIS statement so it will display 0-100 even though all you values will be down on one end.
proc sgplot data = adttr4;
.
.
.
** ----------------------------- Axes ----------------------------- **;
.
.
yaxis values = (0 to 100 by 5)
label = 'Mean Serum TTR (mg/dL) +/- 1 Standard Error'
labelattrs = (family = "courier new" size = 9.9 pt color = black weight = bold);
I think you can just specify with "VALUES = " on your YAXIS statement so it will display 0-100 even though all you values will be down on one end.
proc sgplot data = adttr4;
.
.
.
** ----------------------------- Axes ----------------------------- **;
.
.
yaxis values = (0 to 100 by 5)
label = 'Mean Serum TTR (mg/dL) +/- 1 Standard Error'
labelattrs = (family = "courier new" size = 9.9 pt color = black weight = bold);
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.