1 / 68

Taking the Leap - Using ODS Statistical Graphics for Data Visualization

Taking the Leap - Using ODS Statistical Graphics for Data Visualization. Wei Cheng, Isis Pharmaceuticals, Inc. Those who can tune that engine well — who solve basic human problems with greater speed and simplicity than those who came before — will profit immensely. .

tallis
Download Presentation

Taking the Leap - Using ODS Statistical Graphics for Data Visualization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.

  2. Those who can tune that engine well — who solve basic human problems with greater speed and simplicity than those who came before — will profit immensely. Evan Williams, Founder of Blogger and Twitter

  3. Life is a travelling to the edge of knowledge, then a leap taken -- D. H. Lawrence

  4. Outline of Topics • Create statistical graphs from SAS procedures • Create statistical graphs from Statistical Graphics (SG) procedures • Create statistical graphs from Graph Template Language (GTL) • ODS Graphics Designer • ODS Graphics Editor

  5. Outline of Topics • Create statistical graphs from SAS procedures • Create statistical graphs from Statistical Graphics (SG) procedures • Create statistical graphs from Graph Template Language (GTL) • ODS Graphics Designer • ODS Graphics Editor

  6. Outline of Topics • Create statistical graphs from SAS procedures • Create statistical graphs from Statistical Graphics (SG) procedures • Create statistical graphs from Graph Template Language (GTL) • ODS Graphics Designer • ODS Graphics Editor

  7. Outline of Topics • Create statistical graphs from SAS procedures • Create statistical graphs from Statistical Graphics (SG) procedures • Create statistical graphs from Graph Template Language (GTL) • ODS Graphics Designer • ODS Graphics Editor

  8. Outline of Topics • Create statistical graphs from SAS procedures • Create statistical graphs from Statistical Graphics (SG) procedures • Create statistical graphs from Graph Template Language (GTL) • ODS Graphics Designer • ODS Graphics Editor

  9. Statistical Graphics Engine Expressions Functions Table Template Store Procedure ODS Output Object Data & Template Data Got Graph? Yes No Styles or ODS Output Destination Engine Graph HTML Data Set RTF PDF Document

  10. ODS Graphics Basics ods <dest> file = … <Procedure or data steps> Ods <dest> close;

  11. ODS Graphics Basics ods <dest> file = … ods graphics on; <Procedure or data steps> Ods <dest> close;

  12. ODS Graphics Basics ods <dest> file = … ods graphics on; <Procedure or data steps> ods graphics off; Ods <dest> close;

  13. ODS Graphics Basics ods <dest> file = … ods graphics on / <options>; <Procedure or data steps> ods graphics off; Ods <dest> close;

  14. ODS Graphics Basics ods graphics on / <options>; Options: RESET IMAGENAME ANTIALIAS HEIGHT BORDER SCALE OUTPUTFMT WIDTH IMAGEMAP more-options

  15. Create Statistical Graphs from SAS Procedures ods <dest> file = … ods graphics on ; Proc freq data = sashelp.heart; tables bp_status; Run; ods graphics off; Ods <dest> close;

  16. Create Statistical Graphs from SAS Procedures

  17. Create Statistical Graphs from SAS Procedures

  18. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot; Run; ods graphics off;

  19. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type = dot); Run; ods graphics off;

  20. Create Statistical Graphs from SAS Procedures

  21. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type=dot orient = vertical); Run; ods graphics off;

  22. Create Statistical Graphs from SAS Procedures

  23. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot; Run; ods graphics off;

  24. Create Statistical Graphs from SAS Procedures

  25. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = grouphorizontal); Run; ods graphics off;

  26. Create Statistical Graphs from SAS Procedures

  27. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = stacked); Run; ods graphics off;

  28. Create Statistical Graphs from SAS Procedures

  29. Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / chisq plots(only)= deviationplot (type = dot); Run; ods graphics off;

  30. Create Statistical Graphs from SAS Procedures

  31. Create Statistical Graphs from SAS Procedures

  32. Create Statistical Graphs from SAS Procedures

  33. Create Statistical Graphs from SAS Procedures

  34. Create Statistical Graphs from SAS Procedures

  35. Create Statistical Graphs from SAS Procedures

  36. Create Statistical Graphs from SAS Procedures

  37. Create Statistical Graphs from SAS Procedures

  38. Create Statistical Graphs from SAS Procedures

  39. Create Statistical Graphs from SAS Procedures • SAS/STAT (ANOVA, GLM, MIXED, LIFETEST, etc.) • SAS/QC (CAPABILITY, SHEWHART, etc.) • Base SAS (CORR, FREQ, UNIVARIATE) • SAS/ETS (ARIMA, TIMESERIES, VARMAX, etc.) • Other (HPF, HPFENGINE, SAS Risk Dimensions)

  40. Create Statistical Graphs Using SG Procedures New SAS/GRAPH Procedures producing statistical graphs SGPLOT SGPANEL SGSCATTER

  41. Create Statistical Graphs Using SG Procedures Proc sgplot data = sashelp.class; scatter x = height y = weight / group = sex name = “scatter”; loess x = height y = weight / group = sex clm clmtransparency = 0.6 nomarkers; keylegend “scatter” Run;

  42. Create Statistical Graphs Using SG Procedures

  43. Create Statistical Graphs Using SG Procedures Proc sgpanel data = sashelp.heart; panelby weight_status bp_status / layout = lattice; reg x = height y = weight / cli; Run;

  44. Create Statistical Graphs Using SG Procedures

  45. Create Statistical Graphs Using SG Procedures Proc sgscatter data = sashelp.heart; plot (diastolic systolic ) * (weight height) / group = weight_status; Run;

  46. Create Statistical Graphs Using SG Procedures

  47. Create Statistical Graphs Using SG Procedures Proc sgscatter data = sashelp.heart; compare x = (diastolic systolic ) y = weight; Run;

  48. Create Statistical Graphs Using SG Procedures

  49. Animated Bubble Chart by Hans Rosling

  50. Create Statistical Graphs Using GTL Proc template; define statgraph simplereg; beginggraph; entrytitle “Simple Scatter Plot with Regressin Line”; layout overlay; scatterplot x = height y = weight; regressionplot x = height y = weight; endlayout; endgraph; end; Run;

More Related