<?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: change line style in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454377#M15578</link>
    <description>&lt;P&gt;Have a look at this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has examples of every type of graph with code etc.&amp;nbsp; It is the goto for anything graph like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also a quick Google found this in the SAS help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/35/864.html" target="_blank"&gt;http://support.sas.com/kb/35/864.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is pattern you want.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 08:43:00 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-16T08:43:00Z</dc:date>
    <item>
      <title>PROC SGPLOT: change line style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454373#M15577</link>
      <description>&lt;P&gt;Dear SAS-users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to change the style of the lines for the section up until 2011. I would like to have dotted line instead of the filled line. HOw would I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data graph_avg2;
input year change_cc change_ls;
datalines;
2010 100 100
2011 100 100
2012 104.050 100.98
2013 112.217 108.458

;
run;



proc sgplot data=graph_Avg2;
title  "ALL HOSPITALS- W/O MIDDLE BUCKET";
    vline year / response=change_cc lineattrs=(color=gold thickness=4) name='cc' legendlabel='Assuming 100% CC';
	vline year / response=change_ls lineattrs=(color=red thickness=4) name='ls'  legendlabel='Assuming 100% LS';

    yaxis discreteorder=data display=(noline nolabel noticks) min=80 values=(0 to 5000);
    xaxis display=(noline noticks) grid label='year' values=(2010 to 2013 by 1) offsetmin=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2018 08:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454373#M15577</guid>
      <dc:creator>GKati</dc:creator>
      <dc:date>2018-04-16T08:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: change line style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454377#M15578</link>
      <description>&lt;P&gt;Have a look at this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has examples of every type of graph with code etc.&amp;nbsp; It is the goto for anything graph like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also a quick Google found this in the SAS help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/35/864.html" target="_blank"&gt;http://support.sas.com/kb/35/864.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is pattern you want.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 08:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454377#M15578</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-16T08:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: change line style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454478#M15594</link>
      <description>&lt;P&gt;You can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data graph_avg2;
input year change_cc change_ls;
date=mdy(12, 31, year);
format date date9.;
datalines;
2010 100 100
2011 100 100
2012 104.050 100.98
2013 112.217 108.458
;
run;

proc expand data=graph_avg2 out=graph_avg2_expand from=year to=day;
   convert change_cc change_ls / method=join;
   id date;
run;

data graph_avg2_expand;
   set graph_avg2_expand;
   group=ifc(date&amp;gt;"31dec2010"d, "After", "Before");
run;

ods graphics on / attrpriority=none;
title  "ALL HOSPITALS- W/O MIDDLE BUCKET";
proc sgplot data=graph_avg2_expand noautolegend;
    styleattrs datalinepatterns=(dash solid);
    series x=date y=change_cc / group=group lineattrs=(color=gold thickness=4) name='cc' legendlabel='Assuming 100% CC';
	 series x=date y=change_ls / group=group lineattrs=(color=red thickness=4) name='ls'  legendlabel='Assuming 100% LS';

    yaxis discreteorder=data display=(noline nolabel noticks) min=80;
    xaxis display=(noline noticks) grid label='year' offsetmin=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-change-line-style/m-p/454478#M15594</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-04-16T15:34:54Z</dc:date>
    </item>
  </channel>
</rss>

