This post should contain one format statement, one proc gchart and one question. If you are not seeing all of these, it means my question was truncated.
0 <- .10 = '0 to 10%'
.10 <- .30 = '10% to 30%'
.30 <- .60 = '30% to 60%'
.60 <- high = 'More than 60%';
proc gchart data=inputdata;
format val xxx.;
vbar val / freq=_freq discrete;
How can I create this same plot using PROC SGPLOT? I'm having trouble finding the options I need either in the XAXIS statement of SGPLOT or the options. I'm probably just missing something obvious that's already in the documentation, but can anybody help me make my plot?
The point of this for me is to learn SGPLOT, so please don't say "if you're already doing it, why worry".
Currently, there is not a direct analog to the LEVELS option. By default, the procedure summarizes on DISCRETE numeric or character values. To achieve the LEVELS functionality, you can define your own user-defined format to establish your ranges and define the label for each range.
Posting a program with special characters like < or > or / causes problems to how the message shows up in the viewer. You can use the appropriate HTML escape characters for these special characters, as I have use here. The / (forward slash) for the statement options is really needed.