<?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: Create a smooth connecting line that starts after the first point in the X axis. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507794#M17291</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65221"&gt;@Giampaolo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello SAS users,&lt;/P&gt;
&lt;P&gt;my data are means&amp;nbsp;from measurements that were taken before surgery and at regular interval after surgery. I would like to connect with a smooth line only the measurement taken after surgery. The means of measurements taken before surgery&amp;nbsp;should have the same&amp;nbsp;symbols&amp;nbsp;as those following surgery but&amp;nbsp;should be separated.&amp;nbsp;&lt;STRONG&gt;Can I do this without juxtaposing 2 separately created graphs?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes you can, but you likely need to modify your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would probably just create some new variables such that you have two series of data and then use a SCATTER&amp;nbsp;statement for the data before the surgery and SERIES for the data after the surgery date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Split data into new variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

if date &amp;gt; surgery_date then do;
x=new_x;
y=new_y;
call missing(x,y);
end;

run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Oct 2018 15:54:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-10-26T15:54:51Z</dc:date>
    <item>
      <title>Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507784#M17289</link>
      <description>&lt;P&gt;Hello SAS users,&lt;/P&gt;&lt;P&gt;my data are means&amp;nbsp;from measurements that were taken before surgery and at regular interval after surgery. I would like to connect with a smooth line only the measurement taken after surgery. The means of measurements taken before surgery&amp;nbsp;should have the same&amp;nbsp;symbols&amp;nbsp;as those following surgery but&amp;nbsp;should be separated.&amp;nbsp;Can I do this without juxtaposing 2 separately created graphs?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I posted my code below, although I am not sure that it can offer any further information to this problem.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data= &amp;amp;VB.overtime3 ;

Title "Perioperative levels of &amp;amp;VB";
styleattrs datacontrastcolors=(blue blue red red ) DATALINEPATTERNS=(solid shortdash solid shortdash  )
datacolors=(blue blue red red) datasymbols=(circlefilled circlefilled squarefilled squarefilled);
xaxis type=discrete;
series x=level y=&amp;amp;VB.mean_lev /smoothconnect
MARKERS markerattrs=(size=9) LINEATTRS = (THICKNESS = 2)group = &amp;amp;G;
keylegend/  valueattrs=(SIZE=12);
xaxis type=discrete;
scatter x=level y=&amp;amp;VB.mean_lev /
markerattrs=(size=0)
yerrorlower=&amp;amp;VB.LCLM_lev 
yerrorupper=&amp;amp;VB.UCLM_lev group = &amp;amp;G;

YAXIS LABEL = "&amp;amp;VB (mg/dl)" valueattrs=(SIZE=12) labelattrs=(SIZE=12 weight=bold) ; 
XAXIS LABEL = 'TIME' valueattrs=(SIZE=12) labelattrs=(SIZE=12 weight=bold); 
format level level.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507784#M17289</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-10-26T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507793#M17290</link>
      <description>&lt;P&gt;It may be as simple as having the two groups of data points (before and after) as separate variables plotted with two scatter statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you showed some data that would help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507793#M17290</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-10-26T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507794#M17291</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65221"&gt;@Giampaolo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello SAS users,&lt;/P&gt;
&lt;P&gt;my data are means&amp;nbsp;from measurements that were taken before surgery and at regular interval after surgery. I would like to connect with a smooth line only the measurement taken after surgery. The means of measurements taken before surgery&amp;nbsp;should have the same&amp;nbsp;symbols&amp;nbsp;as those following surgery but&amp;nbsp;should be separated.&amp;nbsp;&lt;STRONG&gt;Can I do this without juxtaposing 2 separately created graphs?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes you can, but you likely need to modify your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would probably just create some new variables such that you have two series of data and then use a SCATTER&amp;nbsp;statement for the data before the surgery and SERIES for the data after the surgery date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Split data into new variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

if date &amp;gt; surgery_date then do;
x=new_x;
y=new_y;
call missing(x,y);
end;

run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507794#M17291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-26T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507795#M17292</link>
      <description>Thank you! I will try this&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507795#M17292</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-10-26T15:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507796#M17293</link>
      <description>Thank you&lt;BR /&gt;I'll post the data.</description>
      <pubDate>Fri, 26 Oct 2018 15:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507796#M17293</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-10-26T15:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a smooth connecting line that starts after the first point in the X axis.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507800#M17294</link>
      <description />
      <pubDate>Fri, 26 Oct 2018 16:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-smooth-connecting-line-that-starts-after-the-first/m-p/507800#M17294</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-10-26T16:05:45Z</dc:date>
    </item>
  </channel>
</rss>

