<?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 do I plot line chart with showing one line in red color for responders and green for non resp? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902015#M24194</link>
    <description>&lt;P&gt;I need to show numeric values on Y axis and X axis with values like Hbase, Hwk20,Hwk38, Ebase, Ewk20,Ewk38. I need to draw solid lines for values Hbase, Hwk20, Hwk38 but show dash lines for Ebase,Ewk20, Ewk38.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 09:47:44 GMT</pubDate>
    <dc:creator>dsam</dc:creator>
    <dc:date>2023-11-08T09:47:44Z</dc:date>
    <item>
      <title>How do I plot line chart with showing one line in red color for responders and green for non resp?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902015#M24194</link>
      <description>&lt;P&gt;I need to show numeric values on Y axis and X axis with values like Hbase, Hwk20,Hwk38, Ebase, Ewk20,Ewk38. I need to draw solid lines for values Hbase, Hwk20, Hwk38 but show dash lines for Ebase,Ewk20, Ewk38.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902015#M24194</guid>
      <dc:creator>dsam</dc:creator>
      <dc:date>2023-11-08T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902020#M24195</link>
      <description>&lt;P&gt;I moved to "Graphics Programming"-board !&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902020#M24195</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-08T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902021#M24196</link>
      <description>&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Go to Knowledge Base : &lt;BR /&gt;&lt;A href="https://support.sas.com/en/knowledge-base.html" target="_blank"&gt;https://support.sas.com/en/knowledge-base.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Then go to Graphics Samples : &lt;BR /&gt;&lt;A href="https://support.sas.com/en/knowledge-base/graph-samples-gallery.html" target="_blank"&gt;https://support.sas.com/en/knowledge-base/graph-samples-gallery.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Then go to SGPLOT procedure : &lt;A href="https://support.sas.com/sassamples/graphgallery/PROC_SGPLOT.html" target="_blank"&gt;https://support.sas.com/sassamples/graphgallery/PROC_SGPLOT.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Then choose your graph and visualize the code for it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902021#M24196</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-08T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902023#M24197</link>
      <description>I checked all the graphs , it doesn't have what I am looking for</description>
      <pubDate>Wed, 08 Nov 2023 10:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902023#M24197</guid>
      <dc:creator>dsam</dc:creator>
      <dc:date>2023-11-08T10:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902089#M24198</link>
      <description>&lt;P&gt;Not opening DOCX files from any unknown source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can insert images into a post using the camera icon above the message window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide data that you want graphed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually your description of different color/line types based on the value of a variable(?) is a GROUP=thatvariablename&lt;/P&gt;
&lt;P&gt;option and if you want specific combinations then perhaps look at examples using a DATTRMAP data set to provide attributes for graph elements based on the values of the group variable.&lt;/P&gt;
&lt;P&gt;Or use the Series plot options GROUPLC and GROUPLP to point to a variable that you add to your data set to use for the color and the line pattern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following link shows creating a data set with variables to plot and additional variable to control line color with the Grouplc option.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/52/964.html" target="_blank"&gt;https://support.sas.com/kb/52/964.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 16:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902089#M24198</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-08T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902094#M24199</link>
      <description>Yes to this part of code but main issue is I need to show present study data with solid line and future study data with dashline continuous</description>
      <pubDate>Wed, 08 Nov 2023 16:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902094#M24199</guid>
      <dc:creator>dsam</dc:creator>
      <dc:date>2023-11-08T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902233#M24200</link>
      <description>&lt;P&gt;I have attached my code along with output i am getting. I would like to dispplay lines as dash lines when my visits on x axis are EBASE, EWK20, EWK38, etc. Also I want to control colors for the grouping variable&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 02:06:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902233#M24200</guid>
      <dc:creator>dsam</dc:creator>
      <dc:date>2023-11-09T02:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line chart with showing one line in red color for responders and green for non res</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902268#M24201</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.stocks;
 keep stock date close;
run;
proc sort data=have;
by date stock;
run;
proc transpose data=have out=want;
by date;
id stock;
var close;
run;
data want;
 set want end=last;
 group=ifc(date&amp;gt;='01jan1998'd,'Future','Actual');
 label group='02'x;
 if last then do;text1='IBM';text2='Intel';end;
run;


ods graphics/attrpriority=none;
proc sgplot data=want;
styleattrs  datalinepatterns=(solid dash);
series x=date y=IBM/group=group   lineattrs=(thickness=2px color=red) name='a' ;
series x=date y=Intel/group=group  lineattrs=(thickness=2px color=green);
scatter x=date y=IBM /markerattrs=(size=0) datalabel=text1 datalabelattrs=(color=red size=12) datalabelpos=right;
scatter x=date y=Intel /markerattrs=(size=0) datalabel=text2 datalabelattrs=(color=green size=12) datalabelpos=right;

refline '01jan1998'd/axis=x;
keylegend 'a' /location=inside across=1 position=ne;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1699507886728.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89574iA97F73ADA08AF71A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1699507886728.png" alt="Ksharp_0-1699507886728.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 05:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-line-chart-with-showing-one-line-in-red-color-for/m-p/902268#M24201</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-11-09T05:31:36Z</dc:date>
    </item>
  </channel>
</rss>

