<?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 Proc Template: How to assign the same color to error bars as that as of the lines in a line-plot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/501232#M472</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on generating a line plot with error bars. I have defined the graph styles in proc template. I have also used proc template followed by sgrender to generate my graph. The lines generated by using series plot in proc template have the colors that I have defined, but the error bars don't seem to take up the same color. I was hoping that someone could help me with it. Any help would be greatly appreciated. Below is the code that&amp;nbsp;I have used along with the output produced:&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;PROC TEMPLATE;&lt;BR /&gt;define style mystyle;&lt;BR /&gt;parent=styles.rtf;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;style GraphData1 from GraphData1 / contrastcolor=black linestyle=1 MarkerSymbol="circle" color=black ;&lt;BR /&gt;style GraphData2 from GraphData2 / contrastcolor=BLUE linestyle=2 MarkerSymbol="Triangle" color=BLUE;&lt;BR /&gt;style GraphData3 from GraphData3 / contrastcolor=ORANGE linestyle=3 MarkerSymbol="square" color=ORANGE;&lt;BR /&gt;style GraphData4 from GraphData4 / contrastcolor=green linestyle=4 MarkerSymbol="PLUS" color=green ;&lt;BR /&gt;style GraphData5 from GraphData5 / contrastcolor=MAGENTA linestyle=5 MarkerSymbol="CircleFilled" ;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style GraphError /LineThickness = 1px;&lt;/P&gt;&lt;P&gt;END;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*******************************************************************************;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph line;&lt;BR /&gt;&lt;BR /&gt;begingraph / designwidth=12in designheight=8.5in ;&lt;BR /&gt;entrytitle ' ';&lt;BR /&gt;layout lattice /columndatarange=union rowweights=(0.40 0.60);&lt;BR /&gt;*--------------------------------------------------------------------*&lt;BR /&gt;| Line Plot&lt;BR /&gt;*--------------------------------------------------------------------*;&lt;BR /&gt;layout overlay / yaxisopts=(label='Drug Concentration (mg/L)' linearopts=(viewmin=0 viewmax=60 tickvaluelist=(&amp;amp;yvals)))&amp;nbsp;&lt;BR /&gt;xaxisopts=(linearopts=(viewmin=0 viewmax=250 tickvaluelist=(&amp;amp;xvals))&lt;BR /&gt;display=none label="");&lt;/P&gt;&lt;P&gt;scatterplot x=ndy y=mean/yerrorlower=lower yerrorupper=upper &amp;nbsp;;&lt;/P&gt;&lt;P&gt;seriesplot x=ndy y=mean / group=treat name="treat" lineattrs=(thickness=2 pattern=1 /*color=red symbol=square*/);&lt;BR /&gt;blockplot x=ndy block=ndy/datatransparency=.8 extendblockonmissing=true;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endlayout;&lt;/P&gt;&lt;P&gt;*--------------------------------------------------------------------*&lt;BR /&gt;| Bottom Line Plot&lt;BR /&gt;*--------------------------------------------------------------------*;&lt;BR /&gt;layout overlay / yaxisopts=(label='FeNO Concentration (mg/L)' linearopts=(viewmin=-80 viewmax=160 tickvaluelist=(&amp;amp;yvals)))&amp;nbsp;&lt;BR /&gt;xaxisopts=(label="Nominal Time (Days)" offsetmin=0.01 offsetmax=0.01&lt;BR /&gt;linearopts=(viewmin=0 viewmax=250 tickvaluelist=(&amp;amp;xvals)));&lt;BR /&gt;scatterplot x=ndy y=mean33/yerrorlower=lower33 yerrorupper=upper33&amp;nbsp;;&lt;/P&gt;&lt;P&gt;seriesplot x=ndy y=mean33 /group=treat name="treat" lineattrs=(thickness=2 pattern=1) ;&lt;BR /&gt;blockplot x=ndy block=ndy/datatransparency=.8 extendblockonmissing=true;&lt;/P&gt;&lt;P&gt;discretelegend 'treat' / location=outside halign=left valign=bottom&lt;BR /&gt;order=columnmajor border=false valueattrs=(size=10pt);&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf file="C:/lineplot.rtf" style=smystyle nogfootnote nogtitle bodytitle toc_data headery=720 footery=720 style=mystyle;&lt;BR /&gt;ods pdf file="C:/lineplot.pdf" style=mystyle;&lt;/P&gt;&lt;P&gt;proc sgrender data=final template=line ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/U&gt;&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="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23751i2074074BF97655A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 18:00:53 GMT</pubDate>
    <dc:creator>DinoPut</dc:creator>
    <dc:date>2018-10-03T18:00:53Z</dc:date>
    <item>
      <title>Proc Template: How to assign the same color to error bars as that as of the lines in a line-plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/501232#M472</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on generating a line plot with error bars. I have defined the graph styles in proc template. I have also used proc template followed by sgrender to generate my graph. The lines generated by using series plot in proc template have the colors that I have defined, but the error bars don't seem to take up the same color. I was hoping that someone could help me with it. Any help would be greatly appreciated. Below is the code that&amp;nbsp;I have used along with the output produced:&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;PROC TEMPLATE;&lt;BR /&gt;define style mystyle;&lt;BR /&gt;parent=styles.rtf;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;style GraphData1 from GraphData1 / contrastcolor=black linestyle=1 MarkerSymbol="circle" color=black ;&lt;BR /&gt;style GraphData2 from GraphData2 / contrastcolor=BLUE linestyle=2 MarkerSymbol="Triangle" color=BLUE;&lt;BR /&gt;style GraphData3 from GraphData3 / contrastcolor=ORANGE linestyle=3 MarkerSymbol="square" color=ORANGE;&lt;BR /&gt;style GraphData4 from GraphData4 / contrastcolor=green linestyle=4 MarkerSymbol="PLUS" color=green ;&lt;BR /&gt;style GraphData5 from GraphData5 / contrastcolor=MAGENTA linestyle=5 MarkerSymbol="CircleFilled" ;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style GraphError /LineThickness = 1px;&lt;/P&gt;&lt;P&gt;END;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*******************************************************************************;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph line;&lt;BR /&gt;&lt;BR /&gt;begingraph / designwidth=12in designheight=8.5in ;&lt;BR /&gt;entrytitle ' ';&lt;BR /&gt;layout lattice /columndatarange=union rowweights=(0.40 0.60);&lt;BR /&gt;*--------------------------------------------------------------------*&lt;BR /&gt;| Line Plot&lt;BR /&gt;*--------------------------------------------------------------------*;&lt;BR /&gt;layout overlay / yaxisopts=(label='Drug Concentration (mg/L)' linearopts=(viewmin=0 viewmax=60 tickvaluelist=(&amp;amp;yvals)))&amp;nbsp;&lt;BR /&gt;xaxisopts=(linearopts=(viewmin=0 viewmax=250 tickvaluelist=(&amp;amp;xvals))&lt;BR /&gt;display=none label="");&lt;/P&gt;&lt;P&gt;scatterplot x=ndy y=mean/yerrorlower=lower yerrorupper=upper &amp;nbsp;;&lt;/P&gt;&lt;P&gt;seriesplot x=ndy y=mean / group=treat name="treat" lineattrs=(thickness=2 pattern=1 /*color=red symbol=square*/);&lt;BR /&gt;blockplot x=ndy block=ndy/datatransparency=.8 extendblockonmissing=true;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endlayout;&lt;/P&gt;&lt;P&gt;*--------------------------------------------------------------------*&lt;BR /&gt;| Bottom Line Plot&lt;BR /&gt;*--------------------------------------------------------------------*;&lt;BR /&gt;layout overlay / yaxisopts=(label='FeNO Concentration (mg/L)' linearopts=(viewmin=-80 viewmax=160 tickvaluelist=(&amp;amp;yvals)))&amp;nbsp;&lt;BR /&gt;xaxisopts=(label="Nominal Time (Days)" offsetmin=0.01 offsetmax=0.01&lt;BR /&gt;linearopts=(viewmin=0 viewmax=250 tickvaluelist=(&amp;amp;xvals)));&lt;BR /&gt;scatterplot x=ndy y=mean33/yerrorlower=lower33 yerrorupper=upper33&amp;nbsp;;&lt;/P&gt;&lt;P&gt;seriesplot x=ndy y=mean33 /group=treat name="treat" lineattrs=(thickness=2 pattern=1) ;&lt;BR /&gt;blockplot x=ndy block=ndy/datatransparency=.8 extendblockonmissing=true;&lt;/P&gt;&lt;P&gt;discretelegend 'treat' / location=outside halign=left valign=bottom&lt;BR /&gt;order=columnmajor border=false valueattrs=(size=10pt);&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf file="C:/lineplot.rtf" style=smystyle nogfootnote nogtitle bodytitle toc_data headery=720 footery=720 style=mystyle;&lt;BR /&gt;ods pdf file="C:/lineplot.pdf" style=mystyle;&lt;/P&gt;&lt;P&gt;proc sgrender data=final template=line ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/U&gt;&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="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23751i2074074BF97655A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 18:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/501232#M472</guid>
      <dc:creator>DinoPut</dc:creator>
      <dc:date>2018-10-03T18:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template: How to assign the same color to error bars as that as of the lines in a line-plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/501679#M561</link>
      <description>&lt;P&gt;If you&amp;nbsp;add the option&amp;nbsp;GROUP=TREAT to your SCATTERPLOT statements,&amp;nbsp;the error bars will be the colors you are expecting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 19:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/501679#M561</guid>
      <dc:creator>LeliaM</dc:creator>
      <dc:date>2018-10-04T19:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template: How to assign the same color to error bars as that as of the lines in a line-plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/502104#M615</link>
      <description>&lt;P&gt;Thank you, LeliaMcConnell! I had figured that out. Appreciate your response!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 12:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Template-How-to-assign-the-same-color-to-error-bars-as-that/m-p/502104#M615</guid>
      <dc:creator>DinoPut</dc:creator>
      <dc:date>2018-10-06T12:02:19Z</dc:date>
    </item>
  </channel>
</rss>

