<?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: Changing line colors and patterns in overlaid roc curves, proc sgplot in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342227#M17988</link>
    <description>&lt;PRE&gt;
How about this one.


proc sort data=sashelp.class out=class;
by age;
run;

ods graphics/reset attrpriority=none;
proc sgplot data=class;
styleattrs datacolors=(green red) datacontrastcolors=(green red) 
           datalinepatterns=(solid dash) ;          
series x=age y=height;
series x=age y=weight;
run;
 
&lt;/PRE&gt;</description>
    <pubDate>Sat, 18 Mar 2017 10:10:10 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-03-18T10:10:10Z</dc:date>
    <item>
      <title>Changing line colors and patterns in overlaid roc curves, proc sgplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342222#M17987</link>
      <description>&lt;P&gt;I'm trying to use three different colors and patterns for three overlaid ROC curves. I'm using the following code but it's not giving me the result I want. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC sgplot DATA=overlayuc4 aspect=1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;title 'mytitle';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xaxis values=(0 to 1 by 0.10) grid offsetmin=.05 offsetmax=.05;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis values=(0 to 1 by 0.10) grid offsetmin=.05 offsetmax=.05;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xaxis label='False Alarm Rate (1 - Specificity)';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yaxis label='Hit Rate (Sensitivity)';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineparm x=0 y=0 slope=1 / transparency=.7;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; series x=_1mspec_ y=_sensit_/ name='Outcome1' lineattrs=(pattern=solid) legendlabel='Outcome1';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;series x=_1mspec_ y=_sensit_/ name='Outcome2' lineattrs=(pattern=shortdash) legendlabel='Outcome2';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;series x=_1mspec_ y=_sensit_/ name='Outcome3' lineattrs=(pattern=longdash) legendlabel='Outcome3';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;keylegend 'Outcome1' 'Outcome2' 'Outcome3';&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 05:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342222#M17987</guid>
      <dc:creator>zglendening</dc:creator>
      <dc:date>2017-03-18T05:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing line colors and patterns in overlaid roc curves, proc sgplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342227#M17988</link>
      <description>&lt;PRE&gt;
How about this one.


proc sort data=sashelp.class out=class;
by age;
run;

ods graphics/reset attrpriority=none;
proc sgplot data=class;
styleattrs datacolors=(green red) datacontrastcolors=(green red) 
           datalinepatterns=(solid dash) ;          
series x=age y=height;
series x=age y=weight;
run;
 
&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Mar 2017 10:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342227#M17988</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-18T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing line colors and patterns in overlaid roc curves, proc sgplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342230#M17989</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134522"&gt;@zglendening&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to use three different colors and patterns for three overlaid ROC curves. I'm using the following code but it's not giving me the result I want. Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC sgplot DATA=overlayuc4 aspect=1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;title 'mytitle';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xaxis values=(0 to 1 by 0.10) grid offsetmin=.05 offsetmax=.05;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis values=(0 to 1 by 0.10) grid offsetmin=.05 offsetmax=.05;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xaxis label='False Alarm Rate (1 - Specificity)';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yaxis label='Hit Rate (Sensitivity)';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineparm x=0 y=0 slope=1 / transparency=.7;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; series x=_1mspec_ y=_sensit_/ name='Outcome1' lineattrs=(pattern=solid) legendlabel='Outcome1';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;series x=_1mspec_ y=_sensit_/ name='Outcome2' lineattrs=(pattern=shortdash) legendlabel='Outcome2';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;series x=_1mspec_ y=_sensit_/ name='Outcome3' lineattrs=(pattern=longdash) legendlabel='Outcome3';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;keylegend 'Outcome1' 'Outcome2' 'Outcome3';&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1. What does 'not giving me the result I want' mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Ideally post using a sample dataset so your issue can be replicated quickly. I'm too lazy to make up data to test your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. What version of SAS are you using? The graphing options have changed a lot in last iterations and that means different options are available. %put sysvlong; to get version if you don't know it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 10:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Changing-line-colors-and-patterns-in-overlaid-roc-curves-proc/m-p/342230#M17989</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-18T10:28:43Z</dc:date>
    </item>
  </channel>
</rss>

