<?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: Proc SGPLOT: different on Band and Series in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628644#M19539</link>
    <description>&lt;P&gt;I have attached my program&amp;nbsp; and 2 outputs..&lt;/P&gt;
&lt;P&gt;help will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 02:25:39 GMT</pubDate>
    <dc:creator>sueshaw</dc:creator>
    <dc:date>2020-03-02T02:25:39Z</dc:date>
    <item>
      <title>Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628578#M19534</link>
      <description>&lt;P&gt;I am new to SGPLOT, thank for help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to output a band with (ll uu)xval. but the following statements produced different result...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) band x=val lower=ll upper=uu / fill outline transparency=0.3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) series x=val y=ll /lineattrs=(pattern=dash color=black) ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; series x=val y=uu /lineattrs=(pattern=dash color=black);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also want to add symbol at val*estimate,&amp;nbsp; and draw a line with lower and upper bar on some of x values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;series x=val2 y=estimate2 /group=dose grouporder=data lineattrs=(pattern=solid) markers datalabel=xlab; &lt;BR /&gt;scatter x=val2 y=estimate2/group=dose grouporder=data yerrorupper=uu2 yerrorlower=ll2 ;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 19:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628578#M19534</guid>
      <dc:creator>sueshaw</dc:creator>
      <dc:date>2020-03-01T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628583#M19535</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/25606"&gt;@sueshaw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am new to SGPLOT, thank for help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to output a band with (ll uu)xval. but the following statements produced different result...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) band x=val lower=ll upper=uu / fill outline transparency=0.3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) series x=val y=ll /lineattrs=(pattern=dash color=black) ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; series x=val y=uu /lineattrs=(pattern=dash color=black);&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What different result? Show us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also want to add symbol at val*estimate,&amp;nbsp; and draw a line with lower and upper bar on some of x values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;series x=val2 y=estimate2 /group=dose grouporder=data lineattrs=(pattern=solid) markers datalabel=xlab; &lt;BR /&gt;scatter x=val2 y=estimate2/group=dose grouporder=data yerrorupper=uu2 yerrorlower=ll2 ;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What happened when you tried? Show us.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 21:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628583#M19535</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-01T21:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628644#M19539</link>
      <description>&lt;P&gt;I have attached my program&amp;nbsp; and 2 outputs..&lt;/P&gt;
&lt;P&gt;help will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 02:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628644#M19539</guid>
      <dc:creator>sueshaw</dc:creator>
      <dc:date>2020-03-02T02:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628799#M19541</link>
      <description>&lt;P&gt;There does seem to be an issue to be investigated. However, I can give you a workaround:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=resp_1 noautolegend; 
    series x=val y=ll / transparency=1;
    band x=val lower=ll upper=uu / fill outline transparency=0.3 x2axis;
    series x=val2 y=estimate2 /group=dose grouporder=data lineattrs=(pattern=solid) markers datalabel=xlab; 
    scatter x=val2 y=estimate2/group=dose grouporder=data yerrorupper=uu2 yerrorlower=ll2 ;
    x2axis display=none;
    xaxis label="xlab" display=none;
    yaxis label="ylab" ;   
 run;  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 15:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628799#M19541</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-03-02T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628810#M19543</link>
      <description>&lt;P&gt;A colleague here at work spotted the issue -- The X2AXIS option on the BAND plot (sorry I missed that). Having the BAND on a different xaxis from the scatter plot causes your misalignment because the two axes will have different ranges (your band has a longer range than you scatter plot). Just remove that option, and you should be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/628810#M19543</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-03-02T16:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT: different on Band and Series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/629209#M19548</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to have x2axis display=none; because I dont want to show value on x axis.&lt;/P&gt;
&lt;P&gt;instead, I only want want to show some values (val2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used your recommendation, and problem solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added&lt;/P&gt;
&lt;P&gt;1) series x=val y=ll/transparency=1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) series x=val y=uu/transparency=1;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please find my final output attached.&lt;/P&gt;
&lt;P&gt;note: I used sganno to add label to x axis, that's other problems that I need to work on....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 18:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-different-on-Band-and-Series/m-p/629209#M19548</guid>
      <dc:creator>sueshaw</dc:creator>
      <dc:date>2020-03-03T18:31:12Z</dc:date>
    </item>
  </channel>
</rss>

