<?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 sg plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706846#M20818</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can someone able to help to figure out how to add data point value in graph but not on X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I have to do this graph just for one subject. so all record in dataset LL is for one subject only.&lt;/P&gt;&lt;P&gt;I Have attached my code and output here.&lt;/P&gt;&lt;P&gt;As in graph, I am trying to add my data point (green triangle) inside the graph but, i don't want its value to&amp;nbsp; display on X-axis(which is Cycle 6 Day 11). I want that value just to display in between cycle 6 day 1 and cycle 7 day1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ll;&lt;BR /&gt;set lb_cm;&lt;BR /&gt;by subjid astdt ;&lt;BR /&gt;lag_adt=lag(astdt);&lt;BR /&gt;lag_visn=lag(avisitn);&lt;BR /&gt;lag_vis=lag(avisit);&lt;BR /&gt;if first.subjid then do; lag_adt= . ; end;&lt;BR /&gt;form&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;at lag_adt date9. ;
if astdt &amp;gt; lag_adt and avisitn eq . then do;
dys=astdt-lag_adt;
avisitn=sum(lag_visn,0.5);
avisit_1=substr(lag_vis,1,8)||" Day "||strip(put(dys,8.));
acyclec=substr(lag_vis,1,8);
acycle=(scan(lag_vis,2,' '))*1;
end;
if astdt_ ne '' then do; aval2=0.05; end;
if avisit='Screening' then do; aval2=.; end;
if avisit_1 eq '' then do; avisit_1=avisit; end;
run;
proc sgplot data=ll noautolegend cycleattrs;
styleattrs datacontrastcolors=(red green);
series x=avisit_1 y=aval / DATALABEL=chg MARKEROUTLINEATTRS=acyclec curvelabelattrs=(size=10)
group=trtp lineattrs=(thickness=3);

scatter y=aval2 x=avisit_1 / group=trtp markerattrs=(color=green symbol=triangle size=12);
yaxis display=all;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IMAGE 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnati_0-1608249589939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52778i251FFFFA2EE3DF7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnati_0-1608249589939.png" alt="unnati_0-1608249589939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnati_1-1608249904856.png" style="width: 234px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52779iE53530395AEBAD52/image-dimensions/234x348?v=v2" width="234" height="348" role="button" title="unnati_1-1608249904856.png" alt="unnati_1-1608249904856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I have also tried y=avisit but in that case i am able to populated data point in graph and instead of four it only populate three (i.e. cycle 3 day 1 ,&amp;nbsp;cycle 6 day 1 ,&amp;nbsp;cycle 8 day 15).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will appriciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 00:17:18 GMT</pubDate>
    <dc:creator>unnati</dc:creator>
    <dc:date>2020-12-18T00:17:18Z</dc:date>
    <item>
      <title>sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706846#M20818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can someone able to help to figure out how to add data point value in graph but not on X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I have to do this graph just for one subject. so all record in dataset LL is for one subject only.&lt;/P&gt;&lt;P&gt;I Have attached my code and output here.&lt;/P&gt;&lt;P&gt;As in graph, I am trying to add my data point (green triangle) inside the graph but, i don't want its value to&amp;nbsp; display on X-axis(which is Cycle 6 Day 11). I want that value just to display in between cycle 6 day 1 and cycle 7 day1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ll;&lt;BR /&gt;set lb_cm;&lt;BR /&gt;by subjid astdt ;&lt;BR /&gt;lag_adt=lag(astdt);&lt;BR /&gt;lag_visn=lag(avisitn);&lt;BR /&gt;lag_vis=lag(avisit);&lt;BR /&gt;if first.subjid then do; lag_adt= . ; end;&lt;BR /&gt;form&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;at lag_adt date9. ;
if astdt &amp;gt; lag_adt and avisitn eq . then do;
dys=astdt-lag_adt;
avisitn=sum(lag_visn,0.5);
avisit_1=substr(lag_vis,1,8)||" Day "||strip(put(dys,8.));
acyclec=substr(lag_vis,1,8);
acycle=(scan(lag_vis,2,' '))*1;
end;
if astdt_ ne '' then do; aval2=0.05; end;
if avisit='Screening' then do; aval2=.; end;
if avisit_1 eq '' then do; avisit_1=avisit; end;
run;
proc sgplot data=ll noautolegend cycleattrs;
styleattrs datacontrastcolors=(red green);
series x=avisit_1 y=aval / DATALABEL=chg MARKEROUTLINEATTRS=acyclec curvelabelattrs=(size=10)
group=trtp lineattrs=(thickness=3);

scatter y=aval2 x=avisit_1 / group=trtp markerattrs=(color=green symbol=triangle size=12);
yaxis display=all;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IMAGE 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnati_0-1608249589939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52778i251FFFFA2EE3DF7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnati_0-1608249589939.png" alt="unnati_0-1608249589939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnati_1-1608249904856.png" style="width: 234px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52779iE53530395AEBAD52/image-dimensions/234x348?v=v2" width="234" height="348" role="button" title="unnati_1-1608249904856.png" alt="unnati_1-1608249904856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I have also tried y=avisit but in that case i am able to populated data point in graph and instead of four it only populate three (i.e. cycle 3 day 1 ,&amp;nbsp;cycle 6 day 1 ,&amp;nbsp;cycle 8 day 15).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will appriciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 00:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706846#M20818</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-18T00:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706849#M20819</link>
      <description>&lt;P&gt;The XAXIS statement is what you would supply to control what goes on the axis with a Values= &amp;lt;list&amp;gt; or rule.&lt;/P&gt;
&lt;P&gt;Your current axis is awful busy and could use some pruning in my eye. Just make sure that the values don't include the value you don't like.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 00:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706849#M20819</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-18T00:25:41Z</dc:date>
    </item>
    <item>
      <title>sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706852#M20820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can someone able to help to figure out how to add data point value in graph but not on X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I have to do this graph just for one subject. so all record in dataset LL is for one subject only.&lt;/P&gt;&lt;P&gt;I Have attached my code and output here.&lt;/P&gt;&lt;P&gt;As in graph, I am trying to add my data point (green triangle) inside the graph but, i don't want its value to&amp;nbsp; display on X-axis(which is Cycle 6 Day 11). I want that value just to display in between cycle 6 day 1 and cycle 7 day1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ll;
set lb_cm;
by subjid astdt ;
lag_adt=lag(astdt);
lag_visn=lag(avisitn);
lag_vis=lag(avisit);
if first.subjid then do; lag_adt= . ; end;
format lag_adt date9. ;
if astdt &amp;gt; lag_adt and avisitn eq . then do;
   dys=astdt-lag_adt;
   avisitn=sum(lag_visn,0.5);
   avisit_1=substr(lag_vis,1,8)||" Day "||strip(put(dys,8.));
   acyclec=substr(lag_vis,1,8);
   acycle=(scan(lag_vis,2,' '))*1;
end;
if astdt_ ne '' then do; aval2=0.05; end;
if avisit='Screening' then do; aval2=.; end;
if avisit_1 eq '' then do; avisit_1=avisit; end;
run;


proc sgplot data=ll noautolegend cycleattrs;
   styleattrs datacontrastcolors=(red green);
   series x=avisit y=aval / DATALABEL=chg   MARKEROUTLINEATTRS=acyclec  curvelabelattrs=(size=10)
                           group=trtp  lineattrs=(thickness=3);

scatter y=aval2 x=avisit / group=trtp  markerattrs=(color=green symbol=triangle size=12);
   yaxis display=all;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have also tried y=avisit but in that case i am able to populated data point in graph and instead of four it only populate three (i.e. cycle 3 day 1 ,&amp;nbsp;cycle 6 day 1 ,&amp;nbsp;cycle 8 day 15).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgplot.PNG" style="width: 697px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52780iE7501F577CBF15CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgplot.PNG" alt="sgplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 00:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706852#M20820</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-18T00:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706942#M20821</link>
      <description>&lt;P&gt;If there is a relationship between the "analysis value" and "avisit_1", you might be able to assign the scatter plot to the X2 axis by using the X2AXIS option on the SCATTER statement. Then, you can turn off the display of the X2 axis by adding:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x2axis display=none;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706942#M20821</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-12-18T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706953#M20822</link>
      <description>&lt;P&gt;Thank you so much. It worked like magic for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really apricate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again !!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 14:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706953#M20822</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-18T14:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706980#M20823</link>
      <description>&lt;P&gt;do you by chance know similar option for PROC SG panel.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706980#M20823</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-18T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706986#M20824</link>
      <description>&lt;P&gt;Unfortunately, not at this time.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706986#M20824</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-12-18T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706988#M20825</link>
      <description>&lt;P&gt;Since we currently do not support secondary axes in SGPANEL, you can use Proc SGPLOT with BY-group variable(s) and use ODS LAYOUT to lay them out in a grid. Proc SGplot has options to create uniform groups and axes across BY-groups.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/706988#M20825</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-12-18T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: sg plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/707053#M20826</link>
      <description>&lt;P&gt;I am able to resolve my issue&amp;nbsp; by using PROC SGPLOT . Do you know if i want to apply same thing X2axis on PROC template then what is the option ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 19:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sg-plot/m-p/707053#M20826</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-18T19:20:17Z</dc:date>
    </item>
  </channel>
</rss>

