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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.