<?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: How do I plot diary data using SGPLOT HIGHLOW in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462009#M15936</link>
    <description>&lt;P&gt;There is a keep at same line example. It is a long time since I used that but there is a good example for a salesman visiting several cities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example using two gant viewers in VA. The top one has over lapping dates as you had some challenges with using high-low. If you have VA available that might be the best solution, because of mouse over etc. The gantt procedure is a bit quarrelsome to get nics.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="va_gant.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20507iE7CC336A325A4438/image-size/large?v=v2&amp;amp;px=999" role="button" title="va_gant.PNG" alt="va_gant.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 May 2018 12:13:58 GMT</pubDate>
    <dc:creator>PaalNavestad</dc:creator>
    <dc:date>2018-05-14T12:13:58Z</dc:date>
    <item>
      <title>How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461696#M15915</link>
      <description>&lt;P&gt;I have plots I created in SGPLOT to show the use of three product forms over time.&amp;nbsp; There is a plot for each panelist and all of the products used show up as a rectangle.&amp;nbsp; There are three product types - sometimes they overlap and there can be many uses.&amp;nbsp; The data are formatted such that each row is a product used and each subject can have any number of uses (usually &amp;lt; 20).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datascreenshot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20478i2012D78FAD2DDE8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="datascreenshot.png" alt="datascreenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used SGPLOT highlow to basically draw a series of rectangles for each product used and the type of product on the y-axis but the code is no longer working and I am unsure what changed.&amp;nbsp; The data is the same as before but now I only see a single line at the end of the plot rather than rectangles.&amp;nbsp; What would cause that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=use noautolegend nocycleattrs;
  highlow y=form low=on high=off / 
				group=abs2&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;				type=bar 
          		barwidth=0.8 
				lineattrs=(color=black pattern=1)
				name='Form'
				x2axis;
 
  *--Assign dummy plot to create independent X2 axis--*;
  scatter x=day_int y=form /  markerattrs=(size=0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="regimen plot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20477iCD86AFB635EDEA73/image-size/large?v=v2&amp;amp;px=999" role="button" title="regimen plot.png" alt="regimen plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 20:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461696#M15915</guid>
      <dc:creator>llbohman</dc:creator>
      <dc:date>2018-05-11T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461718#M15916</link>
      <description>&lt;P&gt;I am not sure I am understanding what you mean by "&amp;nbsp;I only see a single line at the end of the plot rather than rectangles".&lt;/P&gt;
&lt;P&gt;I don't see anything that jumps out as "being a single line". The only thing I see are black lines that look a lot like they would come from almost overlapping areas.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 22:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461718#M15916</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-11T22:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461818#M15917</link>
      <description>&lt;P&gt;Hard to tell without seeing your current graph and your data. But looking at your code, nothing guarantees that your X1 and X2 axes will line up properly. It would be a lot safer to convert your on and off dates into days since beginning and drop the dummy plot.&lt;/P&gt;</description>
      <pubDate>Sun, 13 May 2018 04:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461818#M15917</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-05-13T04:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461984#M15930</link>
      <description>&lt;P&gt;Apologies - I only included what the plot used to look like.&amp;nbsp; It now looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="badplot.png" style="width: 438px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20499iCC822448C9ED34E7/image-dimensions/438x323?v=v2" width="438" height="323" role="button" title="badplot.png" alt="badplot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 11:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461984#M15930</guid>
      <dc:creator>llbohman</dc:creator>
      <dc:date>2018-05-14T11:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461988#M15931</link>
      <description>&lt;P&gt;Hi, hard to understand what you really want in this. Seem like a Gantt chart to me. Hard to see what has gone wrong withut the data in a better form. Maby a vector plot can work better.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 11:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/461988#M15931</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2018-05-14T11:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462003#M15934</link>
      <description>&lt;P&gt;I tried a GANTT plot but it puts each product use on its own line vs showing all the uses of a form in a row (like in the first picture).&amp;nbsp; I wasn't able to figure out what to change to make GANTT work.&amp;nbsp; Thank you for the suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462003#M15934</guid>
      <dc:creator>llbohman</dc:creator>
      <dc:date>2018-05-14T12:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462006#M15935</link>
      <description>&lt;P&gt;This worked - I created a lag variable for the day interval variable and used those in the highlow.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462006#M15935</guid>
      <dc:creator>llbohman</dc:creator>
      <dc:date>2018-05-14T12:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot diary data using SGPLOT HIGHLOW</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462009#M15936</link>
      <description>&lt;P&gt;There is a keep at same line example. It is a long time since I used that but there is a good example for a salesman visiting several cities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example using two gant viewers in VA. The top one has over lapping dates as you had some challenges with using high-low. If you have VA available that might be the best solution, because of mouse over etc. The gantt procedure is a bit quarrelsome to get nics.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="va_gant.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20507iE7CC336A325A4438/image-size/large?v=v2&amp;amp;px=999" role="button" title="va_gant.PNG" alt="va_gant.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-diary-data-using-SGPLOT-HIGHLOW/m-p/462009#M15936</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2018-05-14T12:13:58Z</dc:date>
    </item>
  </channel>
</rss>

