<?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: plotting two time series that shows alternatively using proc gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142965#M5392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you post some data, I or somebody else will show you how to do this with SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 17:17:22 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-09-12T17:17:22Z</dc:date>
    <item>
      <title>plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142964#M5391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to plot two time series and interpolate those points that show together. The two time series are part of one original series. The difficulty here is that the two time series shows up alternatively. For example, the first series may be from 8:30 to 9:30 then the second series show up from 9:30 to 10:30 and so on&amp;nbsp; so forth. I only want to interpolate the points that belong to the same series and show up consecutively.&amp;nbsp; Simply using symbol statement is problematic because it will interpolate all data points that belong to the same series altogether. I hope I make myself clear. Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142964#M5391</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T17:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142965#M5392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you post some data, I or somebody else will show you how to do this with SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142965#M5392</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-12T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142966#M5393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use gplot's "skipmiss" option to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure there is at least 1 'missing value' between each section of the line where you want the break to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142966#M5393</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-09-12T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142967#M5394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PG. Here is a example of my data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142967#M5394</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T17:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142968#M5395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. Unfortunately, I have a huge amount of data. Inserting a missing data every time there is a alternation is too burdernsome. Is there any other way I can do this using gplot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142968#M5395</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142969#M5396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, Robert, I need to plot time series of two prices that show alternatively. The missing value you mentioned need to be the missing values of the price series. I don't know how i can insert missing value for these two series.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142969#M5396</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142970#M5397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your time series already have missing values. Is this what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data ex;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;infile "&amp;amp;sasforum\datasets\example.txt" firstobs=2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input Obs time :time10. price1 price2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format time time10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=ex;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series x=time y=price1 / markers break lineattrs=(pattern=solid) markerattrs=(symbol=circle); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series x=time y=price2 / markers break lineattrs=(pattern=solid) markerattrs=(symbol=circle);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xaxis type=time;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SGPlot1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7405_SGPlot1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142970#M5397</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-12T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142971#M5398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When should there be a break in the line? (ie, what is the logic/criteria for making that decision?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142971#M5398</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-09-12T19:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142972#M5399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PG. That is what i need. But can i do it with proc gplot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142972#M5399</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T19:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142973#M5400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, whenever there is a change of appearance from price1 to price2 or the other way around, there should be a break.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142973#M5400</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T19:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142974#M5401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG, the missing value is because the two series used to belong one original series. The two are the two parts of one complete series.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142974#M5401</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T19:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142975#M5402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how to do a graph similar to PG's, but using Proc Gplot ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot interpol=join color=red;&lt;/P&gt;&lt;P&gt;symbol2 value=dot interpol=join color=blue;&lt;/P&gt;&lt;P&gt;proc gplot data=ex;&lt;/P&gt;&lt;P&gt;plot price1*time=1 price2*time=2 / overlay skipmiss;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gplot.png" class="jive-image-thumbnail jive-image" height="443" src="https://communities.sas.com/legacyfs/online/7408_gplot.png" width="632" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142975#M5402</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-09-12T19:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142976#M5403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. I tried your code. It works. But I want to use interpol=steplj&amp;nbsp; to link those points. Then it does not work. As you can see these are stock price series. The market is a limit order market where price lasts as long as it is not replaced with better ones. &lt;IMG alt="gplot36.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7415_gplot36.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142976#M5403</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T20:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142977#M5404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh! - You didn't mention that before! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per the Gplot documentation for the 'skipmiss' option:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/67288/HTML/default/viewer.htm#n0l4536v5ljgrvn1875la9n7gjjp.htm" title="http://support.sas.com/documentation/cdl/en/graphref/67288/HTML/default/viewer.htm#n0l4536v5ljgrvn1875la9n7gjjp.htm"&gt;SAS/GRAPH(R) 9.4: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately ... "The SKIPMISS option is available only with JOIN interpolation."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142977#M5404</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-09-12T20:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142978#M5405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Robert, is there any possibility I can do this with interpol=steplj?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142978#M5405</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T20:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: plotting two time series that shows alternatively using proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142979#M5406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per PG's method, it is possible to do this with proc sgplot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=example;&lt;/P&gt;&lt;P&gt;step x=time y=price1/markers break;&lt;/P&gt;&lt;P&gt;step x=time y=price2/markers break;&lt;/P&gt;&lt;P&gt;title;&lt;/P&gt;&lt;P&gt;footnote;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SGPlot10.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7416_SGPlot10.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plotting-two-time-series-that-shows-alternatively-using-proc/m-p/142979#M5406</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-09-12T20:16:41Z</dc:date>
    </item>
  </channel>
</rss>

