BookmarkSubscribeRSS Feed
tampham92
Obsidian | Level 7

I am using proc univariate to produce the histogram plot and I am trying to reduce the size for both horizontal and vertical axis values and the size for the tile for each class (highlight in yellow) I try to define htext in goptions statement but looks like it does not work

Thanks.

tampham92_2-1615231078747.png

 

 

2 REPLIES 2
Athenkosi
Obsidian | Level 7

Hello,

 

Please share your proc univariate program and the input dataset if that's possible so I can look into a solution.

tampham92
Obsidian | Level 7

My Input dataset is relative large to attached here. Below is my proc univariate. The data is organized like an example below

 

ods graphics / height=1000px width=700px;
GOPTIONS htext=1 cells;
SYMBOL v=SQUARE c=BLUE h=1 cells;
PATTERN v=SOLID;
TITLE;
TITLE1 "Distribution analysis of: Rate";

proc univariate data=test;
where type in ('Fed_Funds');
class scenario;
var Rate; /* computes descriptive statisitcs */
histogram Rate / endpoints= -6 to 15 by 0.5 nrows=5 normal (color=red)

CFRAME=CXEAEAEA CAXES=BLACK WAXIS=1 CBARLINE=BLACK CFILL=BLUE PFILL=SOLID
;
INSET
MEAN
STD
SKEWNESS
KURTOSIS
MAX
MIN
Q1
MEDIAN
Q3 / POSITION=NE
CTEXT=BLUE
CFILL=CXD3D3D3
CFRAME=BLACK
CHEADER=BLACK
HEIGHT=1.5
format=10.2
;
ods select histogram; /* display on the histograms */
run;

 

scenariotypepathDateRate
LB_-200bpsFed_Funds12/28/20210.26
LB_-200bpsFed_Funds23/31/20210.23
LB_-200bpsFed_Funds34/30/20210.5
LB_-50bpsFed_Funds12/28/20210.6
LB_-50bpsFed_Funds23/31/20210.75
LB_-50bpsFed_Funds34/30/20210.8
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
  • 1009 views
  • 0 likes
  • 2 in conversation