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);
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.