BookmarkSubscribeRSS Feed
dwiley
Calcite | Level 5
I am using this series of commands and need to control the vertical axes of the 3 histograms being created for comparison purposes in a publication:

PROC UNIVARIATE NORMAL PLOT data=l1.longheat_L_1111;;
var pctmethyl;


HISTOGRAM pctmethyl/midpoints = 0.0 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18
0.2 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38
0.4 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58
0.6 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78
0.8 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98
1.0
vaxislabel='Number of Cytosine Nucleotides Showing Methylation in L1-LCR Amplicon'
vscale=percent
vaxis=1 to 100
nohlabel
ctext = blue;
TITLE "3'L1-5'LCR1";

FOOTNOTE 'Percent Methylation';

run;

I tried using the vaxis option and have not had any luck. For one data set, approximately ~75% for the data are a particular value and for the other two, >80% are similarly one outcome value. For two, the vertical axes are 0-100, for one 0-80.

Thanks for your help
1 REPLY 1
ArtC
Rhodochrosite | Level 12
Have you looked at the ORDER= option on the AXIS statement?

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1002 views
  • 0 likes
  • 2 in conversation