<?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 use GraphError for group linetype? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664658#M20135</link>
    <description>&lt;P&gt;Upon thinking about this further, I think the problem you have is because the error bars do not use the GraphData1 and GraphData2 elements, they use the&amp;nbsp; GraphError element.&amp;nbsp; I think I'll request&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;to weigh in. I do not know how to change the line of the error bars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a workaround: Use the HIGHLOW statement instead of adding error bars to the SCATTER statement. I think this will solve your problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style=GDOLinePlotBW;
ods graphics on / attrpriority=none;
data A;
do Group = 'A','B';
   do xx = 1 to 2;
      x = xx+0.1*(Group='A');
      y = x; L = x-1; U=x+1;
      output;
   end;
end;
run;
proc sgplot data=A;
   highlow x=x high=U low=L / group=Group;
   scatter x=x y=x / group=Group;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Jun 2020 15:14:45 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-06-24T15:14:45Z</dc:date>
    <item>
      <title>How to use GraphError for group linetype?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664250#M20127</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc template;
define style GDOLinePlotBW;
parent=Styles.JOURNAL;
class GraphError / LineThickness=1px;
class GraphData1 / markersymbol = "CircleFilled" linestyle = 1;
class GraphData2 / markersymbol = "Triangle" linestyle = 2;
end;
run;&lt;/PRE&gt;
&lt;PRE&gt;SCATTERPLOT X=_jitter_time Y=y/  YERRORUPPER = uppervar YERRORLOWER = lowervar DATATRANSPARENCY = 0.3  NAME = 'scatter' GROUP = groupp;&lt;/PRE&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Is there any problem with my code? Why the linetype is the same with two group?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeChat Image_20200623195742.png" style="width: 105px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46509i4004DF38029C9DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="WeChat Image_20200623195742.png" alt="WeChat Image_20200623195742.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 11:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664250#M20127</guid>
      <dc:creator>Lee_wan</dc:creator>
      <dc:date>2020-06-23T11:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GraphError for group linetype?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664648#M20134</link>
      <description>&lt;P&gt;Make sure that ATTRPRIORITY=NONE attribute is set. That is the default for the Journal style, but if you override it then the line attributes will not change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try running this program in your style. Does it show different line patterns?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style=GDOLinePlotBW;
ods graphics on / attrpriority=none;
proc sgplot data=sashelp.iris aspect=1;
   reg x=petalwidth y=sepalwidth / group=species nomarkers;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If not, please post your entire graphics program so we can what else you are setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 14:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664648#M20134</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-06-24T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GraphError for group linetype?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664658#M20135</link>
      <description>&lt;P&gt;Upon thinking about this further, I think the problem you have is because the error bars do not use the GraphData1 and GraphData2 elements, they use the&amp;nbsp; GraphError element.&amp;nbsp; I think I'll request&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;to weigh in. I do not know how to change the line of the error bars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a workaround: Use the HIGHLOW statement instead of adding error bars to the SCATTER statement. I think this will solve your problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style=GDOLinePlotBW;
ods graphics on / attrpriority=none;
data A;
do Group = 'A','B';
   do xx = 1 to 2;
      x = xx+0.1*(Group='A');
      y = x; L = x-1; U=x+1;
      output;
   end;
end;
run;
proc sgplot data=A;
   highlow x=x high=U low=L / group=Group;
   scatter x=x y=x / group=Group;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jun 2020 15:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664658#M20135</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-06-24T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GraphError for group linetype?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664950#M20137</link>
      <description>&lt;P&gt;Yes, I finally chose highlow to solve this problem.&lt;/P&gt;
&lt;P&gt;Thank you for your help！&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 10:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-GraphError-for-group-linetype/m-p/664950#M20137</guid>
      <dc:creator>Lee_wan</dc:creator>
      <dc:date>2020-06-25T10:38:44Z</dc:date>
    </item>
  </channel>
</rss>

