<?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: Separating the same dates in a graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987761#M25905</link>
    <description>&lt;P&gt;It adds the Y-values (for same date) because the default STAT displayed is SUM when&amp;nbsp;&lt;SPAN&gt;you have specified the RESPONSE= option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are all the statistics&amp;nbsp; you can display:&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4 class="xis-argument"&gt;STAT=FREQ | MEAN | MEDIAN | PERCENT | SUM&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add this STAT= option after the forward slash in your vline statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2026 20:14:26 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2026-05-11T20:14:26Z</dc:date>
    <item>
      <title>Separating the same dates in a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987752#M25904</link>
      <description>&lt;P&gt;I am trying to draw a graph whose dates are the same in a large data set. The data set attached is only a subset of a large data set. What SAS does is that it adds the Y values and plot them as one point and this distorts the results. I have used the code below to draw the corresponding plot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=reset ;&lt;BR /&gt;vline Date / response=Result group=Structure groupdisplay=cluster;&lt;BR /&gt;xaxis interval=Auto type=time label='Sampled Date' LABELATTRS=(weight=bold size=9) &lt;BR /&gt;VALUEATTRS=(family=arial size=9 style=normal weight=normal );&lt;BR /&gt;yaxis values=(0 to 100 by 5) LABELATTRS=(weight=bold size=9) &lt;BR /&gt;VALUEATTRS=(family=arial size=9 style=normal weight=normal );;&lt;BR /&gt;refline 29 / axis=y label=('Expected Result') lineattrs=(color=red pattern=dash) &lt;BR /&gt;labelattrs=(size=12) labelloc=outside;&lt;BR /&gt;title1 j=c " design Structure" bold;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to avert this problem? Maybe draw a statistic like the Mean, Max of the results corresponding to the dates OR perhaps have the same dates included in the x-axis the with their distinct values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 19:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987752#M25904</guid>
      <dc:creator>mmohotsi</dc:creator>
      <dc:date>2026-05-11T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Separating the same dates in a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987761#M25905</link>
      <description>&lt;P&gt;It adds the Y-values (for same date) because the default STAT displayed is SUM when&amp;nbsp;&lt;SPAN&gt;you have specified the RESPONSE= option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are all the statistics&amp;nbsp; you can display:&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4 class="xis-argument"&gt;STAT=FREQ | MEAN | MEDIAN | PERCENT | SUM&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add this STAT= option after the forward slash in your vline statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 20:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987761#M25905</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-11T20:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Separating the same dates in a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987762#M25906</link>
      <description>&lt;P&gt;Maybe you want a vbox instead of a vline statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;A href="https://support.sas.com/sassamples/graphgallery/index.html" target="_blank" rel="noopener"&gt;Graphics Samples Output Gallery&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;Every graph comes with its code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically for PROC SGPLOT:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/sassamples/graphgallery/PROC_SGPLOT.html" target="_blank" rel="noopener"&gt;https://support.sas.com/sassamples/graphgallery/PROC_SGPLOT.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 20:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987762#M25906</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-11T20:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Separating the same dates in a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987777#M25907</link>
      <description>&lt;P&gt;Why are you using VLINE ? why not use SCATTER?&lt;/P&gt;
&lt;P&gt;VLINE would get MEAN of obs which have the same date.&lt;/P&gt;
&lt;P&gt;And you'd post a desired graph to explain what you are looking for ?&lt;/P&gt;
&lt;PRE&gt;libname x  v9 'C:\Users\xiakeshan\Documents\Downloads';

data reset;
 set x.reset;
run;

proc sgplot data=reset ;
&lt;STRONG&gt;scatter&lt;/STRONG&gt; x=Date y=Result/&lt;STRONG&gt;jitter&lt;/STRONG&gt; group=Structure ;
xaxis interval=Auto type=time label='Sampled Date' LABELATTRS=(weight=bold size=9)
VALUEATTRS=(family=arial size=9 style=normal weight=normal );
yaxis values=(0 to 100 by 5) LABELATTRS=(weight=bold size=9)
VALUEATTRS=(family=arial size=9 style=normal weight=normal );;
refline 29 / axis=y label=('Expected Result') lineattrs=(color=red pattern=dash)
labelattrs=(size=12) labelloc=outside;
title1 j=c " design Structure" bold;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1778570043635.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114953i8588B60A83174745/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1778570043635.png" alt="Ksharp_0-1778570043635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 07:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separating-the-same-dates-in-a-graph/m-p/987777#M25907</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-12T07:15:19Z</dc:date>
    </item>
  </channel>
</rss>

