<?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: Customizing Color in Vertical Bars for Standard Error, Line Plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870839#M23701</link>
    <description>&lt;P&gt;The ERRORBARATTRS option on the SCATTER plot should give you what you need.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 16:17:42 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2023-04-20T16:17:42Z</dc:date>
    <item>
      <title>PROC SGPLOT: Customizing Color in Vertical Bars for Standard Error, Line Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870822#M23700</link>
      <description>&lt;P&gt;I just finished converting my program to use SGPLOT rather than GPLOT to do this plot.&amp;nbsp; What a relief!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's one last thing that I have not yet figured out yet.&amp;nbsp; The vertical bars that mark the lower and upper standard error at each timepoint come out black.&amp;nbsp; I am able to customize the color of everything else.&amp;nbsp; Is there a way to do that?&amp;nbsp; I found a long list of __ATTRS in the documentation, but not sure if any of them apply to this horizontal bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the example from here (you can see the horizontal bar in the "results" tab):&lt;/P&gt;&lt;P&gt;&lt;A title="SGPLOT CODE FROM SAS DOCUMENTATION" href="http://support.sas.com/kb/42/542.html" target="_self"&gt;http://support.sas.com/kb/42/542.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then added on in my program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sgplot data = adttr4; 
	 ** -- Uberdrug -- **;
     scatter x=avisitn y=mean1 / name = "scatter1" yerrorlower=lower1                                                                                            
                              yerrorupper=upper1                                                                                            
                              markerattrs=(color=green symbol=CircleFilled);                                                                
     series x=avisitn y=mean1  /  lineattrs=(color=green pattern=1);                                                                             
 
	 ** -- Placebo ----- **;
     scatter x=avisitn y=mean2 / name = "scatter2" yerrorlower=lower2                                                                                            
                              yerrorupper=upper2                                                                                            
                              markerattrs=(color=blue symbol=CircleFilled);                                                                
     series x=avisitn y=mean2 / lineattrs=(color=blue pattern=2);                                                                             

     xaxis values        = (28 91 183 274 365) 
		   valuesdisplay = ('Day 28 Pre-dose' 'Month 3' 'Month6' 'Month 9' 'Month 12')
           label = 'Timepoint' 
           labelattrs    = (family = "courier new" size = 8.9 pt color = black)
           offsetmin = .09 offsetmax = .09;
 
     yaxis values = (27 28 29 30 31 32)
           label = 'Mean Serum TTR (mg/dL) +/- 1 Standard Error' 
           labelattrs    = (family = "courier new" size = 8.9 pt color = black);

     legenditem type=marker name = "A" /
		        markerattrs=(color=green symbol=CircleFilled)
		        label="Uberdrug"
			    lineattrs=GraphData1
			    markerattrs=Graphdata1;
     legenditem type=marker name = "P" /
		        markerattrs=(color=blue symbol=CircleFilled)
		        label="Placebo"
			    lineattrs=GraphData1
				markerattrs=Graphdata1;
		   keylegend "A" "P" / title = "Treatment";
     run;  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you in advance...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 16:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870822#M23700</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2023-04-20T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Customizing Color in Vertical Bars for Standard Error, Line Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870839#M23701</link>
      <description>&lt;P&gt;The ERRORBARATTRS option on the SCATTER plot should give you what you need.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 16:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870839#M23701</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-04-20T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Customizing Color in Vertical Bars for Standard Error, Line Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870842#M23702</link>
      <description>&lt;P&gt;Wow!&amp;nbsp; I didn't notice that one.&amp;nbsp; Thank you so much.&amp;nbsp; I will fix and then mark your reply as the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 16:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Customizing-Color-in-Vertical-Bars-for-Standard/m-p/870842#M23702</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2023-04-20T16:29:05Z</dc:date>
    </item>
  </channel>
</rss>

