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?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 731 views
  • 0 likes
  • 2 in conversation