Created
May 21, 2014 21:13
-
-
Save rpardee/db3fbeecad8bae038008 to your computer and use it in GitHub Desktop.
SAS GTL for 'butterfly' plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc template ; | |
define statgraph psa_butterfly ; | |
begingraph ; | |
layout lattice _id='lattice' / columndatarange = data | |
columngutter = 0 | |
rowdatarange = data | |
rowgutter = 10 | |
/* columnweights = (0.62 0.38) */ | |
columns = 2 ; | |
layout overlay _id='overlay' / yaxisopts = (gridattrs=(color=CXE8E6E8 pattern=SOLID thickness=1 ) | |
gridDisplay = on | |
display =(LINE TICKVALUES TICKS)) | |
xaxisopts = (label = '# PSAs 75+' | |
reverse = true | |
type = linear | |
gridDisplay = on ) | |
barchart _id='bar2' x=PROVIDER y=FRQ / name='bar2' orient = horizontal ; | |
endlayout; | |
layout overlay _id='overlay2' / yaxisopts=(gridattrs=(color=CXE8E6E8 pattern=SOLID thickness=1 ) | |
gridDisplay=on | |
display=(LINE )) | |
xaxisopts=(label="Percent of 75+ males in panel having PSA" | |
type=linear | |
gridDisplay = on | |
); | |
barchart _id='bar' x=PROVIDER y= pct_overpsa / name='bar' orient = horizontal ; | |
endlayout; | |
endlayout; | |
endgraph; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment