BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Stalk
Pyrite | Level 9

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

1 ACCEPTED SOLUTION

Accepted Solutions
davehalltwp
Quartz | Level 8

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);
 

 

View solution in original post

2 REPLIES 2
davehalltwp
Quartz | Level 8

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);
 

 

Stalk
Pyrite | Level 9
Thank you. I tried vaxis with values before and it didn't work

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1794 views
  • 0 likes
  • 2 in conversation