<?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: Multiple plots with different vertical bars in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120358#M4646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this for '01jan2012'd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TimeSerie1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3476_TimeSerie1.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 13:55:05 GMT</pubDate>
    <dc:creator>mathias</dc:creator>
    <dc:date>2013-04-25T13:55:05Z</dc:date>
    <item>
      <title>Multiple plots with different vertical bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120356#M4644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TimeSerie1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3475_TimeSerie1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=_5A;&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=max / nomarkers lineattrs=(color=cxB30000) legendlabel="Maximum";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=q3 / nomarkers lineattrs=(color=cxE34A33) legendlabel="3rd quantile";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=median / nomarkers lineattrs=(color=cxFC8D59) legendlabel="Median";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=q1 / nomarkers lineattrs=(color=cxFDCC8A) legendlabel="1st quantile";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=min / nomarkers lineattrs=(color=cxFEF0D9) legendlabel="Minimum";&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / noborder position=top location=inside across=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a time series plot of different values at 20 different dates.&lt;/P&gt;&lt;P&gt;I would like to create 20 different versions of this same plot, each time with one vertical line at the 20 different dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120356#M4644</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2013-04-25T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple plots with different vertical bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120357#M4645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, depending on what you are trying to model, you might want to consider quantile regression. See &lt;A href="http://blogs.sas.com/content/iml/2013/04/17/quantile-regression-vs-binning/" title="http://blogs.sas.com/content/iml/2013/04/17/quantile-regression-vs-binning/"&gt; Quantile regression: Better than connecting the sample quantiles of binned data - The DO Loop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your question, you could use the SGPANEL procedure with DATE as the PANELBY variable and the orginal (unsummarized) data as the Y variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you should also consider whether a single plot might suffice.&amp;nbsp; A scatter plot of DATE vs "original Y variable" might give you what you want. An example is in the article that I linked to earlier.&amp;nbsp; Alternatively, to get an easy summarization, you might want to create a VBOX of the original Y variable with CATEGORY=DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120357#M4645</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-25T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple plots with different vertical bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120358#M4646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this for '01jan2012'd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TimeSerie1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3476_TimeSerie1.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120358#M4646</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2013-04-25T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple plots with different vertical bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120359#M4647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use SGPLOT with a BY-group to generate the 20 plots; but, instead of using a literal value for the REFLINE, use a variable that contains the reference line values. That way, the reference line position will vary per BY-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120359#M4647</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-04-25T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple plots with different vertical bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120360#M4648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Quantile regression: I don't think this is appropriate for what I intend to do.&lt;/P&gt;&lt;P&gt;- SGplot with by-group does not work. I think it's becasue there is only one date to plot, and then "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;pbspline x=Date y=max"&lt;/SPAN&gt; will not produce any graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the intended result, do you think it's efficient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro krigetimeplot(date);&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc sgplot data=_5A;&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=max / nomarkers lineattrs=(color=cxB30000) legendlabel="Maximum";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=q3 / nomarkers lineattrs=(color=cxE34A33) legendlabel="3rd quantile";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=median / nomarkers lineattrs=(color=cxFC8D59) legendlabel="Median";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=q1 / nomarkers lineattrs=(color=cxFDCC8A) legendlabel="1st quantile";&lt;/P&gt;&lt;P&gt;&amp;nbsp; pbspline x=Date y=min / nomarkers lineattrs=(color=cxFEF0D9) legendlabel="Minimum";&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / noborder position=top location=inside across=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline &amp;amp;date / axis=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;run;quit;&lt;/P&gt;&lt;P&gt;%mend krigetimeplot;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; set _5A;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('%krigetimeplot('||Date||')');&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 08:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-plots-with-different-vertical-bars/m-p/120360#M4648</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2013-04-26T08:47:38Z</dc:date>
    </item>
  </channel>
</rss>

