<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to annotate the percentage #s on Mosaic plot. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-the-percentage-s-on-Mosaic-plot/m-p/482009#M16637</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Inspired by Rick Wicklin who created&lt;A href="https://blogs.sas.com/content/iml/2015/03/30/visualizing-airline-crashes.html" target="_self"&gt; a nice mosaic plot by using airline crash data&lt;/A&gt;, I wonder if the percentage #s from "proc freq" can be annotated on the mosiac&amp;nbsp;plot. That's would be easy to present&amp;nbsp;in the idea of "numbers within graph".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope some SAS guru here can help me get the desired outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the short version of Rick's SAS code,&amp;nbsp; The attached you'll find raw data in CSV format and PPT file including current result and desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ethan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= WORK.CrashRaw &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* CHANGE the next line to point to the location of the FlightRisk.csv file */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"h:\temp\FlightRisk.csv"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=CSV REPLACE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;GETNAMES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATAROW&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* Do some data cleansing */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Crash;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Flight Phase"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Cause of Crash"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CrashRaw(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;rename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(cause=LongCause meta=Cause));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year = Year(Date);&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"ap"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | substr(upcase(Phase),&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"APPROACH"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Landing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"landing"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"grounded"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"standing"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"initial takeo"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take off"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Takeoff"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"takeoff"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; |Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"initial_climb"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take-off"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en_route"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en route"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human_error"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human error"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* order by frequency */&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"landing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en route"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take-off"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"standing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"unknown"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"criminal"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"unknown"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"mechanical"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"weather"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human error"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;_ALL_&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;listing&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;gpath&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"H:\Temp"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;image_dpi&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;600&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;px&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;600&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;px&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;reset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;index&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;outputfmt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;PNG&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;imagename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"crash_mosiac"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Crash &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause*Phase / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;nocum&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;norow&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;nocol&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;plots&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(mosaic(square));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2019 10:17:49 GMT</pubDate>
    <dc:creator>t75wez1</dc:creator>
    <dc:date>2019-06-23T10:17:49Z</dc:date>
    <item>
      <title>How to annotate the percentage #s on Mosaic plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-the-percentage-s-on-Mosaic-plot/m-p/482009#M16637</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Inspired by Rick Wicklin who created&lt;A href="https://blogs.sas.com/content/iml/2015/03/30/visualizing-airline-crashes.html" target="_self"&gt; a nice mosaic plot by using airline crash data&lt;/A&gt;, I wonder if the percentage #s from "proc freq" can be annotated on the mosiac&amp;nbsp;plot. That's would be easy to present&amp;nbsp;in the idea of "numbers within graph".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope some SAS guru here can help me get the desired outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the short version of Rick's SAS code,&amp;nbsp; The attached you'll find raw data in CSV format and PPT file including current result and desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ethan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= WORK.CrashRaw &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* CHANGE the next line to point to the location of the FlightRisk.csv file */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"h:\temp\FlightRisk.csv"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=CSV REPLACE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;GETNAMES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATAROW&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* Do some data cleansing */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Crash;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Flight Phase"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Cause of Crash"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CrashRaw(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;rename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(cause=LongCause meta=Cause));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year = Year(Date);&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"ap"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | substr(upcase(Phase),&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"APPROACH"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Landing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"landing"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"grounded"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"standing"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"initial takeo"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take off"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"Takeoff"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; | Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"takeoff"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; |Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"initial_climb"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take-off"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en_route"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en route"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human_error"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human error"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* order by frequency */&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"landing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"en route"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"take-off"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"standing"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Phase=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"unknown"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhaseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"criminal"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"unknown"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"mechanical"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"weather"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;else&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"human error"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CauseN=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;_ALL_&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;listing&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;gpath&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"H:\Temp"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;image_dpi&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;600&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;px&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;600&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;px&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;reset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;index&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;outputfmt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;PNG&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;imagename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"crash_mosiac"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Crash &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Cause*Phase / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;nocum&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;norow&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;nocol&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;plots&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(mosaic(square));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 10:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-the-percentage-s-on-Mosaic-plot/m-p/482009#M16637</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2019-06-23T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate the percentage #s on Mosaic plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-the-percentage-s-on-Mosaic-plot/m-p/482078#M16638</link>
      <description>&lt;P&gt;Many of the plots associated with analysis procedures have vary limited options. You may have to summarize the data and go to Graphic Template Language and a MOSAICPLOTPARM block of code to control appearances.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-the-percentage-s-on-Mosaic-plot/m-p/482078#M16638</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-27T21:44:29Z</dc:date>
    </item>
  </channel>
</rss>

