<?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 Format a spline interpolation curve based on binary variable value in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441611#M15234</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first post&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used these forums for years now to answer a lot of the questions I had.&amp;nbsp; I have successfully found an answer to all my questions up until this point.&amp;nbsp; I would like to thank everyone for their great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am really stuck now and it seems no one has ever asked this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to format pieces of my curves based on a binary variable that is not used for plotting the curves.&amp;nbsp; If the value of this variable is 1 then the curves need to be formatted one way and if 0 the curves need to be formatted in a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching an excel file with 2 pictures.&amp;nbsp; One with the output that is produced from the code given below and the other is a picture of what I would like to have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant code that produces the "Example of output I have".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data code;set sys.&amp;amp;project.data;
title "Example";
Axis1 Label = ("Percent") order=(0 to 0.7 by 0.1);
legend1 label = ("Curves");
proc gplot data=code;  
    symbol1 interpol=sm25 height=0.1 value = NONE width = 3 mode = include;
	plot (a b c d)*time /haxis = 0 to 60 by 10 OVERLAY legend
	vaxis = axis1 legend = legend1;
	format a percent5. b percent5. c percent5. d percent5.;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not providing the entire data set as it is 2400 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is a dummy example of how it looks:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Curve Name&lt;/TD&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;Y-value&lt;/TD&gt;&lt;TD&gt;Binary Variable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.3&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.4&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;0.4&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;0.25&lt;/TD&gt;&lt;TD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;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;0.8674&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;0.3&lt;/TD&gt;&lt;TD&gt;0.4674&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;0.4&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;0.6465&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The time variable goes from 0.1 to 60.&amp;nbsp; There are 4 curves (a,b,c,d).&amp;nbsp; The Y-value is a continuous variable that range from 0 - 1.&amp;nbsp; The binary variable is either 0 or 1.&amp;nbsp; The data I provided is only an example for time 0.1 - 0.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically what I would like to have as output is shown in the "&lt;SPAN&gt;Example of output I need" picture&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Essentially wherever the binary variable is 0 the curve is formatted one way and where the binary variable is 1 the curve needs to be formatted differently (in the case of the example it is made thicker).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any thoughts?&amp;nbsp; I have spent days trying all sorts of work around methods but I can't seem to do this Other than outputting the curves I already have and painstakingly (and very inaccurately) using the brush tool in paint to thicken the curves in the correct spots.&amp;nbsp; As you can imagine this is very time consuming, inaccurate and just flat out strange and unscientific thing to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 16:29:41 GMT</pubDate>
    <dc:creator>Toronto_Guy</dc:creator>
    <dc:date>2018-03-02T16:29:41Z</dc:date>
    <item>
      <title>How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441611#M15234</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first post&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used these forums for years now to answer a lot of the questions I had.&amp;nbsp; I have successfully found an answer to all my questions up until this point.&amp;nbsp; I would like to thank everyone for their great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am really stuck now and it seems no one has ever asked this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to format pieces of my curves based on a binary variable that is not used for plotting the curves.&amp;nbsp; If the value of this variable is 1 then the curves need to be formatted one way and if 0 the curves need to be formatted in a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching an excel file with 2 pictures.&amp;nbsp; One with the output that is produced from the code given below and the other is a picture of what I would like to have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant code that produces the "Example of output I have".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data code;set sys.&amp;amp;project.data;
title "Example";
Axis1 Label = ("Percent") order=(0 to 0.7 by 0.1);
legend1 label = ("Curves");
proc gplot data=code;  
    symbol1 interpol=sm25 height=0.1 value = NONE width = 3 mode = include;
	plot (a b c d)*time /haxis = 0 to 60 by 10 OVERLAY legend
	vaxis = axis1 legend = legend1;
	format a percent5. b percent5. c percent5. d percent5.;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not providing the entire data set as it is 2400 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is a dummy example of how it looks:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Curve Name&lt;/TD&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;Y-value&lt;/TD&gt;&lt;TD&gt;Binary Variable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;0.3&lt;/TD&gt;&lt;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nbsp; There are 4 curves (a,b,c,d).&amp;nbsp; The Y-value is a continuous variable that range from 0 - 1.&amp;nbsp; The binary variable is either 0 or 1.&amp;nbsp; The data I provided is only an example for time 0.1 - 0.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically what I would like to have as output is shown in the "&lt;SPAN&gt;Example of output I need" picture&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Essentially wherever the binary variable is 0 the curve is formatted one way and where the binary variable is 1 the curve needs to be formatted differently (in the case of the example it is made thicker).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any thoughts?&amp;nbsp; I have spent days trying all sorts of work around methods but I can't seem to do this Other than outputting the curves I already have and painstakingly (and very inaccurately) using the brush tool in paint to thicken the curves in the correct spots.&amp;nbsp; As you can imagine this is very time consuming, inaccurate and just flat out strange and unscientific thing to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441611#M15234</guid>
      <dc:creator>Toronto_Guy</dc:creator>
      <dc:date>2018-03-02T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441616#M15235</link>
      <description>&lt;P&gt;One method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Switch to SGPLOT - GPLOT is outdated&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Add a new variable or series that contains the data for where you want the bands&lt;/P&gt;
&lt;P&gt;3. Plot the bands using the BAND statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Starter code - needs work to set up the band data properly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Curve_Name $ time	Y_value	Binary_Variable;
band_data_lower = ifn(binary_variable =1, Y_value - 0.01, .);
band_data_upper = ifn(binary_variable =1, Y_value + 0.01, .);
cards;
a	0.1	0	1
a	0.2	0.1	1
a	0.3	0.2	1
a	0.4	0.1	0
a	0.5	0.4	0
b	0.1	0.25	1
b	0.2	0.5	1
b	0.3	0.7	0
b	0.4	0.264	0
b	0.5	0.416	0
c	0.1	0	1
c	0.2	0	0
c	0.3	0	1
c	0.4	0.67	1
c	0.5	0	0
d	0.1	0.8674	0
d	0.2	0	0
d	0.3	0.4674	1
d	0.4	0	1
d	0.5	0.6465	0
;
run;

proc sgplot data=have;
spline y=y_value x=time /group=curve_name;
band lower=band_data_lower upper=band_data_upper x=time;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441616#M15235</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441622#M15236</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to use the suggestions you provided to see if I can come up with the answer&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441622#M15236</guid>
      <dc:creator>Toronto_Guy</dc:creator>
      <dc:date>2018-03-02T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441623#M15237</link>
      <description>&lt;P&gt;PS. If you want the line underneath the band to show up, play around with the&amp;nbsp;TRANSPARENCY setting for the BAND statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:48:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441623#M15237</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T16:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441624#M15238</link>
      <description>&lt;P&gt;PS. If you want the line underneath the band to show up, play around with the&amp;nbsp;TRANSPARENCY setting for the BAND statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you'll want a discrete attribute map to control the colours and&amp;nbsp;line styles&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n03orofvtqwhhon1kkn76l1ovjkx.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n03orofvtqwhhon1kkn76l1ovjkx.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441624#M15238</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T16:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441627#M15239</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I would add though that the GPLOT smoothing splines are not available in SGPLOT.&amp;nbsp; SGPLOT provides better methods (IMHO) including PBSPLINE (penalized B-spline). If you want smoothing splines, you can get the values out of PROC TRANSREG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details08.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details08.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441627#M15239</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-03-02T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441629#M15240</link>
      <description>&lt;P&gt;There is no way to change the attributes of a single curve (Series) based on another variable.&amp;nbsp; So, if you want the curve to "appear" to change attributes (color, thickness), you will need to break it up into segments, each having a unique group value.&amp;nbsp; Each segment should include the connected point in both groups.&amp;nbsp; Then, you can display the series by group with different attributes.&amp;nbsp; You can use a Discrete Attributes Map" to specify the attributes for each group segment.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441629#M15240</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-03-02T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441633#M15241</link>
      <description>&lt;P&gt;SGPLOT with SAS 9.40M3 does support SPLINE statement.&amp;nbsp; Not sure if this will work for you.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441633#M15241</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-03-02T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441660#M15242</link>
      <description>&lt;P&gt;Thank you all for the replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to include these recommendations and will report back with results&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441660#M15242</guid>
      <dc:creator>Toronto_Guy</dc:creator>
      <dc:date>2018-03-02T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441950#M15247</link>
      <description>&lt;P&gt;See new Graphically Speaking article inspired by your query.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/03/02/series-plot-varying-attributes/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/03/02/series-plot-varying-attributes/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/441950#M15247</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-03-02T22:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Format a spline interpolation curve based on binary variable value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/442066#M15248</link>
      <description>&lt;P&gt;Wow this is so awesome.&amp;nbsp; I feel so special &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for letting me know and for all the help provided by everyone else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 17:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-Format-a-spline-interpolation-curve-based-on-binary/m-p/442066#M15248</guid>
      <dc:creator>Toronto_Guy</dc:creator>
      <dc:date>2018-03-03T17:43:02Z</dc:date>
    </item>
  </channel>
</rss>

