Help using Base SAS procedures

need help specifying value range for vertical axes on PROC UNIV histograms

Reply
N/A
Posts: 1

need help specifying value range for vertical axes on PROC UNIV histograms

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
Valued Guide
Posts: 632

Re: need help specifying value range for vertical axes on PROC UNIV histograms

Have you looked at the ORDER= option on the AXIS statement?
Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 2 in conversation