Download presentation
Presentation is loading. Please wait.
Published byMolly Craig Modified over 8 years ago
1
ODS Graphics By Example March 16, 2016 Rocio Lopez
2
DESTINATION AND GENERAL GRAPH OPTIONS
3
Set-up
4
STACKED, SIDE-BY-SIDE AND OVERLAID BAR PLOTS
5
Stacked Bar Plot (default bar plot)
6
Side-by-side (clustered) Bar Plot
7
Overlay Bar Plot 1 2 Simply call several vbar/hbar statements
8
Overlay Bar Plot – Offset Bars 1 1
9
SPAGHETTI PLOTS
10
Spaghetti Plot - Default
11
Spaghetti Plot
12
Spaghetti Plot – Color By Group
13
USING SPECIAL CHARACTERS
14
Use of Symbols
15
Inserting symbols Syntax to insert symbol (*ESC*){unicode ‘value’x} (*ESC*) is the default ODS escape character string Special character that identifies inline formatting symbol You cannot use a user-defined character (ods escapechar=‘character’) Value is the unicode (hex) value for the symbol Syntax to insert super/subscripts (*ESC*){sup ‘text’} (*ESC*){sub ‘text’}
16
Useful Unicode Values SymbolUnicode (hex) value ≠2260 ≤2264 ≥2265 α03B1 ±00B1 µ00B5
17
How To Find Unicode Values? Microsoft Word < Insert < Symbol Or look online
18
Using Symbols – Axis 1 2 3 4 1 2 3 4
19
Using Symbols – Legend
20
INSERTING TEXT INTO GRAPH
21
Text Inset
22
Text Inset – Multiple Rows 11 11
23
Adding additional text to legend – Discrete Attribute Map
24
Inserting text with SG Annotation 1 1 * 2 2
25
TWO-IN-ONE PLOTS
26
Adverse Event Plot … continued on next slide 1 2 2 1
27
Adverse Event Plot - continued 1 2 1 2 3 3
28
Forest Plot 1 2 2 1 3 3
29
CONFIDENCE BANDS
30
Confidence Bands
31
PANEL PLOT
32
Panel Plot – GTL
34
GTL Code If you want a panel of the same type of plot you can easily obtain the GTL code from SGPlot – Use SGPlot to create the plot with all the features you want – Export the GTL code – Modify and render your new graph
35
GTL – DYNAMIC & MACRO VARIABLES
36
Reusable Graph Templates – Dynamic & Macro Variables These give you the flexibility to change variable assignments or text insets without recompiling the template
37
Rendering Your Template
38
AXIS CUSTOMIZATIONS
39
X-Axis Customization When tick values do not fit in the axis, SAS will first attempt to split them into multiple rows. If this is not possible, then the values are rotated
40
X-Axis Customization – Fit Policy Other fitpolicy options are ROTATE, ROTATETHIN, SPLITALWAYS, SPLIT (only splits if labels do not fit), SPLITROTATE (default), STAGGERROTATE,STAGGE RTHIN
41
X-Axis Customization – Fit Policy
42
Y-Axis Value Alignment When tick values do not fit in the y- axis, SAS will attempt to split them. The other option is THIN By default values will be aligned to the right
43
Y-Axis Value Alignment – Left or Center
44
MARKER CUSTOMIZATION
45
Using Text As Markers
46
Using Images As Markers
47
Adding Hyperlinks To Your Markers Hyperlinks will only work in HTML Data tips are explanatory text that appear when you mouse-over portion of graph
48
ANIMATED PLOTS
49
Animated GIF
50
Loop through your plots with macro or BY statement Export the animated graph Export the individual graphs
51
MISCELANEOUS
52
Jittering
53
Connecting Box Plots
54
Bubble Plot – Size Markers According to Variable
55
Changing the Background Color 1 2 1 2
56
OTHER USEFUL EXAMPLES
57
Other Examples Graphically Speaking Blog – Scatter plots stacked with histograms Scatter plots stacked with histograms – Comparative histograms Comparative histograms – Butterfly plots Butterfly plots – Nested plots Nested plots – Margin plots Margin plots – Range attribute map Range attribute map
58
QUESTIONS?
59
Next Month ODS Graphics Designer and Editor
60
THANKS
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.