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.
Hello,
Please share your proc univariate program and the input dataset if that's possible so I can look into a solution.
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;
scenario | type | path | Date | Rate |
LB_-200bps | Fed_Funds | 1 | 2/28/2021 | 0.26 |
LB_-200bps | Fed_Funds | 2 | 3/31/2021 | 0.23 |
LB_-200bps | Fed_Funds | 3 | 4/30/2021 | 0.5 |
LB_-50bps | Fed_Funds | 1 | 2/28/2021 | 0.6 |
LB_-50bps | Fed_Funds | 2 | 3/31/2021 | 0.75 |
LB_-50bps | Fed_Funds | 3 | 4/30/2021 | 0.8 |
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.
Ready to level-up your skills? Choose your own adventure.