<?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: I am trying to reproduce a graph with 4 variables and ingraph labeling in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392705#M13472</link>
    <description>&lt;P&gt;You should look at the documentation for sgplot. &amp;nbsp;Also search for "basic ods graphics examples" book. Pattern statements are sas/graph and are ignored in ods graphics.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Sep 2017 00:51:15 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-09-02T00:51:15Z</dc:date>
    <item>
      <title>I am trying to reproduce a graph with 4 variables and ingraph labeling</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392704#M13471</link>
      <description>&lt;P&gt;I am trying to reproduce this graph but to make proportion with pain the y axis and those with ulcer the x axis.&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;proc sgplot data=ulcer;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; series x=Proportion_with_ulcer y=proportion_with_pain / group=dose break /**lineattrs=(pattern1= solid pattern2=dot pattern3=dashdashdot pattern4=shortdash color=black )"**/;&lt;BR /&gt;pattern1&amp;nbsp; value= dose color=blue;&lt;BR /&gt;pattern2 value=dose color=red;&lt;BR /&gt;pattern3&amp;nbsp; value=dose color=pink;&lt;BR /&gt;pattern4&amp;nbsp; value=dose color=green;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis label='Proportion of Patients with Duodenal Ulcers' values=(0 to 1 by 0.2);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis grid label='Proportion of Patients with Daytime UGI Pain' values=(0 to 1 by 0.2);&lt;/P&gt;&lt;P&gt;portion of Patients with Daytime UGI Pain' values=(0 to 1 by 0.2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;it is not giving me what I want.&lt;/P&gt;&lt;P&gt;Please I need help urgently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 00:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392704#M13471</guid>
      <dc:creator>Uche_Okoro</dc:creator>
      <dc:date>2017-09-02T00:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to reproduce a graph with 4 variables and ingraph labeling</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392705#M13472</link>
      <description>&lt;P&gt;You should look at the documentation for sgplot. &amp;nbsp;Also search for "basic ods graphics examples" book. Pattern statements are sas/graph and are ignored in ods graphics.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 00:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392705#M13472</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-09-02T00:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to reproduce a graph with 4 variables and ingraph labeling</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392803#M13474</link>
      <description>Thank you so much for your prompt response. I did as you suggested but I&lt;BR /&gt;still could not get the desired result.&lt;BR /&gt;&lt;BR /&gt;The following are my data and variable.&lt;BR /&gt;&lt;BR /&gt;data Ulcer;&lt;BR /&gt;input week dose Proportion_with_ulcer proportion_with_pain @@;&lt;BR /&gt;cards;&lt;BR /&gt;0 0 1 0.83&lt;BR /&gt;0 400 1 1&lt;BR /&gt;0 800 1 0.82&lt;BR /&gt;0 1600 1 0.85&lt;BR /&gt;1 0 0.81 0.79&lt;BR /&gt;1 400 0.82 0.80&lt;BR /&gt;1 800 0.84 0.70&lt;BR /&gt;1 1600 0.79 0.70&lt;BR /&gt;2 0 0.71 0.71&lt;BR /&gt;2 400 0.63 0.56&lt;BR /&gt;2 800 0.62 0.40&lt;BR /&gt;2 1600 0.51 0.35&lt;BR /&gt;4 0 0.59 0.60&lt;BR /&gt;4 400 0.38 0.50&lt;BR /&gt;4 800 0.28 0.38&lt;BR /&gt;4 1600 0.26 0.30&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I would appreciate it if you could write the SAS code.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Uche&lt;BR /&gt;</description>
      <pubDate>Sat, 02 Sep 2017 20:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392803#M13474</guid>
      <dc:creator>Uche_Okoro</dc:creator>
      <dc:date>2017-09-02T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to reproduce a graph with 4 variables and ingraph labeling</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392830#M13480</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value dose 
      0 ='   0 mg hs'
    400 =' 400 mg hs'
    800 =' 800 mg hs'
   1600 ='1600 mg hs'
       ;
run;

proc sgplot data=ulcer;
  series x=proportion_with_pain y=proportion_with_ulcer / group=dose datalabel=week datalabelattrs=(size=10 weight=bold);
  styleattrs datalinepatterns=(solid shortdash mediumdash longdash);
  refline 0 0.2 0.4 0.6 0.8 1 / axis=y;
  xaxis min=0 label='Proportion of patients with Duodenal Ulcers';
  yaxis min=0 label='Proportion of Patients with Daytime UGI pain';
  format dose dose. ;
  keylegend / title='' down=2;
  inset '1, 2, 4 weeks of follow-up' / textattrs=(size=12 weight=bold) position=right;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Series plot of proportion with ulcer by proportion with pain by dose" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14804i2B3D0F0FECF8D632/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ulcer plot.jpg" alt="Series plot of proportion with ulcer by proportion with pain by dose" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Series plot of proportion with ulcer by proportion with pain by dose&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2017 01:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-am-trying-to-reproduce-a-graph-with-4-variables-and-ingraph/m-p/392830#M13480</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-09-03T01:36:27Z</dc:date>
    </item>
  </channel>
</rss>

