<?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 Re: Relative Risk plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734187#M21353</link>
    <description>Thanks for the suggestion. It worked!&lt;BR /&gt;I have used tickvalueattrs=(size=8 weight=bold) ) DISCRETEOPTS= (TICKVALUEFITPOLICY=SPLITALWAYS tickvaluesplitchar='~') which shows the y axis tick values readable.&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Apr 2021 11:01:28 GMT</pubDate>
    <dc:creator>Manj</dc:creator>
    <dc:date>2021-04-15T11:01:28Z</dc:date>
    <item>
      <title>Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733890#M21349</link>
      <description>&lt;P&gt;The Expected plot is below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_0-1618426165466.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57706iBF37E4B2DAC40261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1618426165466.png" alt="Manj_0-1618426165466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods path show;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods path(prepend) work.templat(update);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods pdf file="&amp;amp;g_outfile..PDF" nogtitle /*nogfootnote*/ bookmarkgen=no;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods graphics on / reset=all width=1000px height=500px border=off ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc template;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;define statgraph AEbyRelativeRisk;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dynamic _thk _grid;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;begingraph;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout lattice / columns=2 rowdatarange=union columngutter=1;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/*--Row block to get common external row axes--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowaxes;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowaxis / griddisplay=_grid display=(tickvalues) tickvalueattrs=(size=5);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endrowaxes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Column headers with filled background--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;column2headers;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;entry " "; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;entry "&amp;lt;--- Tmt1 Better Tmt2 Better ---&amp;gt;"; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endcolumn2headers;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Left side cell with proportional values--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay / xaxisopts=(label="Percent" display=(ticks tickvalues label) labelattrs=(size=8) tickvalueattrs=(size=7));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline y=teaex / lineattrs=(thickness=_thk) datatransparency=0.9;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=tmt1Pct / markerattrs=graphdata2(symbol=circlefilled size=10)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;name='a' legendlabel="tmt1 (N=&amp;amp;NA)";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=tmt2Pct / markerattrs=graphdata1(symbol=trianglefilled size=10)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;name='b' legendlabel="Tmt2 (N=&amp;amp;NB) ";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;discretelegend 'a' 'b' / border=true halign=left valign=bottom valueattrs=(size=8) displayclipped=true;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Right side cell with Relative Risk values--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay / xaxisopts=(label="Relative Risk with 0.95 CI (*ESC*){unicode '000a'x} tmt1 vs tmt2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;labelattrs=(size=8) tickvalueattrs=(size=7));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline y=teaex / lineattrs=(thickness=_thk) datatransparency=0.9;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=RelRisk / xerrorlower=LowerCL xerrorupper=UpperCL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;markerattrs=(symbol=circlefilled size=10);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline x=1 / lineattrs=graphdatadefault (pattern=solid color=grey);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endgraph;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods graphics / reset width=6in height=4in imagename='AEbyRelativeRisk';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sgrender data=ip template=AEbyRelativeRisk;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dynamic _thk='0' _grid='on';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods pdf close;&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="arial,helvetica,sans-serif"&gt;The figure I get is as below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_1-1618426528335.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57707iC998C157667C0D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_1-1618426528335.png" alt="Manj_1-1618426528335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issues are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) how to split each of the y axis tick values into two or more lines.&lt;/P&gt;&lt;P&gt;2) the figure looks very pale ,how to improve the texts and lines to be a bit more bold or darker so that it will be readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 18:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733890#M21349</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-14T18:57:11Z</dc:date>
    </item>
    <item>
      <title>relative risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733889#M21350</link>
      <description />
      <pubDate>Wed, 14 Apr 2021 18:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733889#M21350</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-14T18:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733911#M21351</link>
      <description>&lt;P&gt;On the ROWAXIS statement, use DISCRETEOPTS=(TICKVALUEFITPOLICY=SPLIT).&amp;nbsp; The tick value will be split if it does not fit.&amp;nbsp; You can reduce the width of the cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Else, use DISCRETEOPTS=(TICKVALUEFITPOLICY=SPLITALWAYS) and specify the Split character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall, you can reduce the graph size and increase the DPI=200 or higher.&amp;nbsp; This will scale up the fonts.&amp;nbsp;&amp;nbsp;You can also set bigger fonts for the tick values and other texts in the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics on / reset=all width=6in height=3in border=off ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods pdf dpi=300;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See examples:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2015/10/31/adverse-events-graph-with-nnt/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2015/10/31/adverse-events-graph-with-nnt/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/11/08/long-category-values/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/11/08/long-category-values/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 20:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733911#M21351</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-04-14T20:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734187#M21353</link>
      <description>Thanks for the suggestion. It worked!&lt;BR /&gt;I have used tickvalueattrs=(size=8 weight=bold) ) DISCRETEOPTS= (TICKVALUEFITPOLICY=SPLITALWAYS tickvaluesplitchar='~') which shows the y axis tick values readable.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2021 11:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734187#M21353</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-15T11:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734304#M21354</link>
      <description>&lt;P&gt;One more issue:&lt;BR /&gt;How to display the xaxis for the right panel as 0.25, 0.50 1 2 4 8 ? my code below. This gives 0.25 1 then 4 only&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_0-1618499415987.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57898iFF7877C14F3AB9C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1618499415987.png" alt="Manj_0-1618499415987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734304#M21354</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-15T15:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734345#M21355</link>
      <description>&lt;P&gt;You can try using the TICKVALUEFITPOLICY=NONE for XAXISOPTS.&amp;nbsp; This will avoid thinning of values due to collision of tick values.&amp;nbsp; Not sure why you need TICKDISPLAYLIST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/n0fksz728ytyz2n1ws13vlnkudyn.htm#n1s7ikodjh2w4cn1sfftoy2qug0j" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/n0fksz728ytyz2n1ws13vlnkudyn.htm#n1s7ikodjh2w4cn1sfftoy2qug0j&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734345#M21355</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-04-15T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734346#M21356</link>
      <description>Hi&lt;BR /&gt;I have tried Tickvaluepolicy=None as well , but that doesn’t give the values in display list .</description>
      <pubDate>Thu, 15 Apr 2021 17:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734346#M21356</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-15T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734499#M21357</link>
      <description>&lt;P&gt;Do you get all the values if you remove 0.25 and 0.5 from the list?&amp;nbsp; These values may be causing some values to be dropped.&amp;nbsp; You can also increase the relative width of the right cell.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 20:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/734499#M21357</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-04-15T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735637#M21387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issue here is I need to present the x axis on a scale using powers of 2 (..., 1/4, 1/2, 1, 2, 4, ...) for the purpose of fitting a larger range of relative risk values, while also keeping the reference line of 1 closer to the center of the panel. This is the requirement and im unable to do this using tickvaluelist and policy.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735637#M21387</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-20T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735660#M21388</link>
      <description>&lt;P&gt;Some such graphs have used a log scale on the x-axis to get the result you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see page 14 of this paper.&amp;nbsp; The xaxisopts for the 2nd cell uses a TYPE of log .&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS07.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS07.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735660#M21388</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-04-20T16:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735892#M21400</link>
      <description>Thank a lot. It worked and got what I wanted.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/735892#M21400</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-21T09:55:55Z</dc:date>
    </item>
  </channel>
</rss>

