<?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: overlay in proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462695#M15956</link>
    <description>Thanks&lt;BR /&gt;</description>
    <pubDate>Wed, 16 May 2018 13:47:37 GMT</pubDate>
    <dc:creator>greveam</dc:creator>
    <dc:date>2018-05-16T13:47:37Z</dc:date>
    <item>
      <title>overlay in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462642#M15954</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to overlay two plots using proc sgplot. I've tried the code below but get the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ERROR: Attempting to overlay incompatible plot or chart types"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=estimates &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NOAUTOLEGEND&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Noborder&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Series&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=ExpEstimate &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=var / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LINEATTRS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;THICKNESS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;band&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;upper&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=UpperExp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lower&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=LowerExp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=var / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;transparency&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;REFLINE&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Axis&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Y &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LINEATTRS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(pattern=ThinDot &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Black THICKNESS=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;yaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Values&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0.25&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0.5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Hazard Ratio"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=LOG &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LABELATTRS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=BOLD &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=normal &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;min&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;VALUES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;85&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Units"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LABELATTRS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=BOLD &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=normal &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;density&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; var;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Attached is a copy of the graph I'm trying to create.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Any help would be greatly appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Anders (SAS9.4M2)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 12:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462642#M15954</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2018-05-16T12:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: overlay in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462657#M15955</link>
      <description>&lt;P&gt;You cannot use density plot with basic plots.&amp;nbsp; See this page for compatability:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic and Distribution are not compatible.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 13:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462657#M15955</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-16T13:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: overlay in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462695#M15956</link>
      <description>Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 16 May 2018 13:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/overlay-in-proc-sgplot/m-p/462695#M15956</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2018-05-16T13:47:37Z</dc:date>
    </item>
  </channel>
</rss>

