<?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: sas GRAPH Hbar with repeating period in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/372043#M12856</link>
    <description>&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;It's perfect.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 07:50:34 GMT</pubDate>
    <dc:creator>PSIOT</dc:creator>
    <dc:date>2017-06-30T07:50:34Z</dc:date>
    <item>
      <title>sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371635#M12845</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;i would like to perform the graph in attachments.&lt;/P&gt;&lt;P&gt;I thought that it was possible usng Hbar with sgplot, but it does not.&lt;/P&gt;&lt;P&gt;The problem is that some period are repeating (in this case "Home").&lt;/P&gt;&lt;P&gt;Do you think that it was possible with SAS v9.4? What procedure?&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14008i980C7A140038CAA9/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="GraphswithHBAR.png" title="GraphswithHBAR.png" /&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371635#M12845</guid>
      <dc:creator>PSIOT</dc:creator>
      <dc:date>2017-06-29T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371642#M12846</link>
      <description>&lt;P&gt;Maybe have a look through this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has loads of examples of all types of graphs.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 12:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371642#M12846</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-29T12:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371675#M12848</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371675#M12848</guid>
      <dc:creator>PSIOT</dc:creator>
      <dc:date>2017-06-29T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371681#M12849</link>
      <description>&lt;P&gt;I suggest to use the HIGHLOW plot statement, you have to prepare the data accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below for an example, that gives you some ideas:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data highlow;
  infile cards dlm="," dsd missover;
  input
    patient : $32. low high type $ labelPoint labelValue $
  ;
  cards;
patient1 someDate,0,20,hospital,10,20
patient1 someDate,20,40,ward,,
patient1 someDate,40,50,hospital,,
patient1 someDate,50,52,home,,
patient1 someDate,52,55,ward,53.5,abc
patient2 01jan2010-25sep2010,0,25,hospital,,
patient2 01jan2010-25sep2010,25,45,home,,
patient2 01jan2010-25sep2010,45,46,ward,,
;

proc sgplot data=highlow;
  highlow y=patient low=low high=high / type=bar group=type;
  text y=patient x=labelPoint text=labelValue / position=center;
  yaxis type=discrete fitpolicy=splitalways;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371681#M12849</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-06-29T13:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371753#M12850</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;i try to put the legend in top of the graph and one line with this sentence:&lt;/P&gt;&lt;P&gt;keylegend / position=top &amp;nbsp;down=1;&lt;/P&gt;&lt;P&gt;But now i have Patient with different type and still on two rows for legends.&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371753#M12850</guid>
      <dc:creator>PSIOT</dc:creator>
      <dc:date>2017-06-29T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371780#M12851</link>
      <description>&lt;P&gt;Add the NAME= option to your plot statements, then in the KEYLEGEND statement you can say for which plot statements you would like to have a legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=highlow;
  highlow y=patient low=low high=high / type=bar group=type name="hl";
  text y=patient x=labelPoint text=labelValue / position=center name="txt";
  yaxis type=discrete fitpolicy=splitalways;
  keylegend "hl" / position=top  down=1 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The placement might have something to do with space that is available, try to make your graph bigger.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 15:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/371780#M12851</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-06-29T15:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: sas GRAPH Hbar with repeating period</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/372043#M12856</link>
      <description>&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;It's perfect.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 07:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sas-GRAPH-Hbar-with-repeating-period/m-p/372043#M12856</guid>
      <dc:creator>PSIOT</dc:creator>
      <dc:date>2017-06-30T07:50:34Z</dc:date>
    </item>
  </channel>
</rss>

