<?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 How to change line color and style? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-line-color-and-style/m-p/893417#M24093</link>
    <description>&lt;P&gt;What can I do so that M is a blue dashed line, F is a red dashed line, and N is a solid black line?&lt;BR /&gt;In addition, how to set the style of the line?&lt;BR /&gt;Thank you very much for everyone’s helpful replies.&lt;/P&gt;&lt;P&gt;Here is my code and a picture of the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;title "Figure 3";&lt;BR /&gt;vline pro / response=rt stat=mean markers&lt;BR /&gt;group=vio lineattrs=(thickness=4px);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="huangchiuhua19_0-1694237966845.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87740iEA4FA089A4BB8EE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="huangchiuhua19_0-1694237966845.png" alt="huangchiuhua19_0-1694237966845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Sep 2023 05:40:10 GMT</pubDate>
    <dc:creator>huangchiuhua19</dc:creator>
    <dc:date>2023-09-09T05:40:10Z</dc:date>
    <item>
      <title>How to change line color and style?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-line-color-and-style/m-p/893417#M24093</link>
      <description>&lt;P&gt;What can I do so that M is a blue dashed line, F is a red dashed line, and N is a solid black line?&lt;BR /&gt;In addition, how to set the style of the line?&lt;BR /&gt;Thank you very much for everyone’s helpful replies.&lt;/P&gt;&lt;P&gt;Here is my code and a picture of the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;title "Figure 3";&lt;BR /&gt;vline pro / response=rt stat=mean markers&lt;BR /&gt;group=vio lineattrs=(thickness=4px);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="huangchiuhua19_0-1694237966845.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87740iEA4FA089A4BB8EE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="huangchiuhua19_0-1694237966845.png" alt="huangchiuhua19_0-1694237966845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 05:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-line-color-and-style/m-p/893417#M24093</guid>
      <dc:creator>huangchiuhua19</dc:creator>
      <dc:date>2023-09-09T05:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line color and style?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-line-color-and-style/m-p/893442#M24094</link>
      <description>&lt;P&gt;Use a Discrete Attributes Map:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data map;
retain id "my_id";
length linepattern $ 10;
input value $ linecolor $ linepattern $;
cards;
F red   mediumdash
M blue  shortdash
N black solid
;
run;

data class;
set sashelp.class;
if age &amp;gt; 14 then sex="N";
run;

proc sgplot data=class dattrmap=map;
series x=age y=weight/group=sex attrid=my_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Sep 2023 14:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-line-color-and-style/m-p/893442#M24094</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-09-09T14:43:56Z</dc:date>
    </item>
  </channel>
</rss>

