**Index of articles on "Getting Started with SGPLOT Procedure".**

- Getting Started with SGPLOT - Part 1 - Scatter Plot.
- Getting Started with SGPLOT - Part 2 - VBAR.
- Getting Started with SGPLOT - Part 3 - VBOX.
- Getting Started with SGPLOT - Part 4 - Series Plot.
- Getting Started with SGPLOT - Part 5 - Histogram.
- Getting Started with SGPLOT - Part 6 - Output Formats
- Getting Started with SGPLOT - Part 7 - HighLow Plot Vertical
- Getting Started with SGPLOT - Part 8 - HighLow Plot Horizontal
- Getting Started with SGPLOT - Part 9 - Bubble Plot
- Getting Started with SGPLOT - Part 10 - Regression Plot
- Getting Started with SGPLOT - Part 11 - Penalized B Spline Plot
- Getting Started with SGPLOT - Part 12 - Loess Plot
- Getting Started with SGPLOT - Part 13 - HBAR
- Getting Started with SGPLOT - Part 14 - HBOX

## 7 Comments

I was wondering if there were a way to use multi-label formats with the graphs.

For example, various birth terms:

Proc Format;

Value ACOGTerm (MultiLabel NotSorted) /* apply to OWGest - Obstetric weeks of gestation */

Low-< 37 = ' Pre-term (< 37)'

34-< 37 = 'Late preterm (34-36)'

Low-< 34 = 'Early pre-term (< 34)' /* aka early preterm birth */

Low-< 32 = 'Extremely pre-term (< 32)'

37-41 = 'Term (37-41)'

37-38 = 'Early term (37-38)'

39-40 = 'Full term (39-40)'

41 = 'Late term (41)'

41-50 = 'Post-term (41-50)'

Other = 'Unknown ';

Run;

And then be able to get line or bar graphs for each grouping.

Yes. You can define a User Defined Format as you showed, apply it to the variable, and then make a graph using that variable. You will see the categorized labels on the axis.

Pingback: Getting started with SGPLOT - Part 3 - VBOX - Graphically Speaking

Pingback: Getting Started with SGPLOT - Part 4 - Series Plot - Graphically Speaking

Pingback: Getting Started with SGPLOT - Part 5 - Histograms - Graphically Speaking

Hi Sanjay,

I spotted a typo, 'Part 7' should be 'Part 9' in the Index list?

"9. Getting Started with SGPLOT - Part 7 - Bubble Plot"

Regards,

Qui

Thanks Qui. Now fixed.