<?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 to show a connecting line in an area-filled overlay plot? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194270#M7187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't run this to make sure you get the same output, but give this a try and see what you get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=test4c;&lt;/P&gt;&lt;P&gt;yaxis label="Residency by %";&lt;/P&gt;&lt;P&gt;xaxis display=(nolabel) offsetmin=0 offsetmax=0;&lt;/P&gt;&lt;P&gt;band x=acad_year upper=in_state lower=0 / fillattrs=(color=wheat) transparency=0.5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="in" legendlabel="In-State";&lt;/P&gt;&lt;P&gt;band x=acad_year upper=out-of-state lower=0 / fillattrs=(color=wheat)&amp;nbsp; transparency=0.5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="out" legendlabel="Out-of-State";&lt;/P&gt;&lt;P&gt;series x=x=acad_year y=in_state / markers lineattrs=(color=bioy);&lt;/P&gt;&lt;P&gt;series x=x=acad_year y=out_of_state / markers lineattrs=(color=gray);&lt;/P&gt;&lt;P&gt;keylegend "in" "out";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 18:14:55 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2015-05-27T18:14:55Z</dc:date>
    <item>
      <title>How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194267#M7184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used proc gplot to produce the graph below.&amp;nbsp; As the out-of-state area (represented by gray dots) was smaller than the in-state area and was specified as the second layer, the line connecting the gray dots were somehow disappeared.&amp;nbsp; Do you know how to get the connecting line displayed in this particular case?&amp;nbsp; Thank you very much.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Below are the codes I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions /*reset=all*/ hsize=15cm vsize=12cm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 color=wheat;&lt;/P&gt;&lt;P&gt;pattern2 color=brpk;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 interpol=join value=dot h=1.5 color=bioy;&lt;/P&gt;&lt;P&gt;symbol2 interpol=join value=dot h=1.5 color=gray;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 label=none value=(color=black height=1.5 'In-State' 'Out-of-State');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 offset=(2,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=(height=1.5 'Residency by %')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; major=(height=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minor=(height=1);&lt;/P&gt;&lt;P&gt;axis2 order=(0 to 100 by 20) offset=(0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; major=(height=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minor=(height=1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1;&lt;/P&gt;&lt;P&gt;proc gplot data=test4c;&lt;/P&gt;&lt;P&gt;plot in_state*acad_year out_of_state*acad_year&lt;/P&gt;&lt;P&gt;/ line &lt;/P&gt;&lt;P&gt;overlay&lt;/P&gt;&lt;P&gt;haxis=axis1&lt;/P&gt;&lt;P&gt;hminor=4&lt;/P&gt;&lt;P&gt;vaxis=axis2&lt;/P&gt;&lt;P&gt;vminor=1&lt;/P&gt;&lt;P&gt;caxis=black&lt;/P&gt;&lt;P&gt;areas=2&lt;/P&gt;&lt;P&gt;legend=legend1&lt;/P&gt;&lt;P&gt;;run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pages from Khoi_test.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10628_Pages from Khoi_test.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 16:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194267#M7184</guid>
      <dc:creator>RVA</dc:creator>
      <dc:date>2015-05-27T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194268#M7185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you flip the PATTERN definitions, SYMBOL definitions, and the order of the pairs on the PLOT statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 17:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194268#M7185</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-05-27T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194269#M7186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan.&amp;nbsp; I would not want to do it as I wanted to keep it in the same order as the data table above (in-state, and then out-of-state).&amp;nbsp; (This order is the standard used in my office.)&amp;nbsp; Is there any way to work around it?&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 17:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194269#M7186</guid>
      <dc:creator>RVA</dc:creator>
      <dc:date>2015-05-27T17:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194270#M7187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't run this to make sure you get the same output, but give this a try and see what you get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=test4c;&lt;/P&gt;&lt;P&gt;yaxis label="Residency by %";&lt;/P&gt;&lt;P&gt;xaxis display=(nolabel) offsetmin=0 offsetmax=0;&lt;/P&gt;&lt;P&gt;band x=acad_year upper=in_state lower=0 / fillattrs=(color=wheat) transparency=0.5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="in" legendlabel="In-State";&lt;/P&gt;&lt;P&gt;band x=acad_year upper=out-of-state lower=0 / fillattrs=(color=wheat)&amp;nbsp; transparency=0.5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="out" legendlabel="Out-of-State";&lt;/P&gt;&lt;P&gt;series x=x=acad_year y=in_state / markers lineattrs=(color=bioy);&lt;/P&gt;&lt;P&gt;series x=x=acad_year y=out_of_state / markers lineattrs=(color=gray);&lt;/P&gt;&lt;P&gt;keylegend "in" "out";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 18:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194270#M7187</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-05-27T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194271#M7188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan.&amp;nbsp; It worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 18:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194271#M7188</guid>
      <dc:creator>RVA</dc:creator>
      <dc:date>2015-05-27T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a connecting line in an area-filled overlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194272#M7189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's 1 way to do it with gplot. Just add an extra overlay of the same 2 things you're plotting, and the'll be on top (the first time plots the areas, and the 2nd time plots the lines)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test4c;&lt;/P&gt;&lt;P&gt;input acad_year in_state out_of_state;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;2008 55 45&lt;/P&gt;&lt;P&gt;2009 54 46&lt;/P&gt;&lt;P&gt;2010 67 33&lt;/P&gt;&lt;P&gt;2011 65 35&lt;/P&gt;&lt;P&gt;2012 66 34&lt;/P&gt;&lt;P&gt;2013 54 46&lt;/P&gt;&lt;P&gt;2014 50 50&lt;/P&gt;&lt;P&gt;2015 50 50&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions /*reset=all*/ hsize=15cm vsize=12cm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 color=wheat;&lt;/P&gt;&lt;P&gt;pattern2 color=brpk;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 interpol=join value=none color=bioy;&lt;/P&gt;&lt;P&gt;symbol2 interpol=join value=none color=gray;&lt;/P&gt;&lt;P&gt;symbol3 interpol=join line=1 value=dot h=1.5 color=bioy;&lt;/P&gt;&lt;P&gt;symbol4 interpol=join line=1 value=dot h=1.5 color=gray;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 label=none value=(color=black height=1.5 'In-State' 'Out-of-State');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 offset=(2,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=(height=1.5 'Residency by %')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; major=(height=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minor=(height=1 number=4);&lt;/P&gt;&lt;P&gt;axis2 order=(0 to 100 by 20) offset=(0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; major=(height=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minor=(height=1 number=4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1;&lt;/P&gt;&lt;P&gt;goptions device=actximg;&lt;/P&gt;&lt;P&gt;proc gplot data=test4c;&lt;/P&gt;&lt;P&gt;plot in_state*acad_year=1 out_of_state*acad_year=2&lt;/P&gt;&lt;P&gt; in_state*acad_year=3 out_of_state*acad_year=4&lt;/P&gt;&lt;P&gt; / overlay areas=2&lt;/P&gt;&lt;P&gt;haxis=axis1 vaxis=axis2&lt;/P&gt;&lt;P&gt;caxis=black legend=legend1;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gplot9.png" class="jive-image-thumbnail jive-image" height="529" src="https://communities.sas.com/legacyfs/online/10630_gplot9.png" style="width: 661.25px; height: 529px;" width="661" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 18:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-a-connecting-line-in-an-area-filled-overlay-plot/m-p/194272#M7189</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-05-27T18:49:45Z</dc:date>
    </item>
  </channel>
</rss>

