<?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: Need Help Modifying TRAJPLOT for X-Axis Adjustment in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Need-Help-Modifying-TRAJPLOT-for-X-Axis-Adjustment/m-p/902780#M40315</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC TRAJ is a user-written procedure.&lt;/P&gt;
&lt;P&gt;%TRAJPLOT and %TRAJPLOTNEW are user-written macro's.&lt;/P&gt;
&lt;P&gt;All 3 things above are NOT SAS-supplied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can contact the author of PROC TRAJ&lt;/P&gt;
&lt;P&gt;or you can extract the code generated by the macro (use mprint option and copy/paste from the LOG).&lt;/P&gt;
&lt;P&gt;Then submit the proc gplot or the proc sgplot again with your own x-axis scaling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples that might inspire you:&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;/P&gt;
&lt;P&gt;PROC GPLOT :&amp;nbsp;&lt;A href="https://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html" target="_blank"&gt;https://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT :&amp;nbsp;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 12:59:56 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-11-13T12:59:56Z</dc:date>
    <item>
      <title>Need Help Modifying TRAJPLOT for X-Axis Adjustment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-Help-Modifying-TRAJPLOT-for-X-Axis-Adjustment/m-p/902122#M40261</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on fitting 21 years of data into Group-Based Trajectory Modeling (GBTM) using PROC TRAJ in SAS. Here's the code snippet I'm using:&lt;/P&gt;&lt;P&gt;sas 9.4&lt;BR /&gt;Copy code&lt;BR /&gt;PROC TRAJ DATA=OPPOSITN OUTPLOT=OP OUTSTAT=OS OUT=OF OUTEST=OE ITDETAIL CI95M;&lt;BR /&gt;ID ID;&lt;BR /&gt;VAR O13-O264;&lt;BR /&gt;INDEP T1-T252; /* Year – 1992 - 2012 (21 Years) */&lt;BR /&gt;MODEL CNORM;&lt;BR /&gt;MAX 30;&lt;BR /&gt;NGROUPS 3;&lt;BR /&gt;ORDER 1 1 2 ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%TRAJPLOT(OP, OS, 'Trajectory Of Year 1991 - 2012', 'Cnorm Model', 'Temp Diff.', 'Time (Months)');&lt;/P&gt;&lt;P&gt;%TRAJPLOTNEW (OP,OS,'Trajectory Of Year 1991 to 2012', 'CNorm Model', 'Temp Diff.', 'Scaled Time');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 235315.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89546i0426BC695E5969E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-08 235315.png" alt="Screenshot 2023-11-08 235315.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 235349.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89547iDCF2FD6DD2F07449/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-08 235349.png" alt="Screenshot 2023-11-08 235349.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This code generates a graph, as shown in the attached image. However, I'm facing an issue with the X-axis; it's displaying 300 units, including 48 blank points. Is there a way to modify the TRAJPLOT to plot only the required 252 units on the X-axis, corresponding to the 21-year timeline from 1992 to 2012?&lt;/P&gt;&lt;P&gt;I'm seeking guidance on how to adjust the X-axis in the TRAJPLOT to ensure it only displays the necessary 252 units and eliminates the extra blank points.&lt;/P&gt;&lt;P&gt;Thank you for your help and suggestions!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;MD. Sihab Sarar&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-Help-Modifying-TRAJPLOT-for-X-Axis-Adjustment/m-p/902122#M40261</guid>
      <dc:creator>Md_SIhab_Sarar</dc:creator>
      <dc:date>2023-11-08T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Modifying TRAJPLOT for X-Axis Adjustment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-Help-Modifying-TRAJPLOT-for-X-Axis-Adjustment/m-p/902780#M40315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC TRAJ is a user-written procedure.&lt;/P&gt;
&lt;P&gt;%TRAJPLOT and %TRAJPLOTNEW are user-written macro's.&lt;/P&gt;
&lt;P&gt;All 3 things above are NOT SAS-supplied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can contact the author of PROC TRAJ&lt;/P&gt;
&lt;P&gt;or you can extract the code generated by the macro (use mprint option and copy/paste from the LOG).&lt;/P&gt;
&lt;P&gt;Then submit the proc gplot or the proc sgplot again with your own x-axis scaling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples that might inspire you:&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;/P&gt;
&lt;P&gt;PROC GPLOT :&amp;nbsp;&lt;A href="https://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html" target="_blank"&gt;https://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT :&amp;nbsp;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 12:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-Help-Modifying-TRAJPLOT-for-X-Axis-Adjustment/m-p/902780#M40315</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-13T12:59:56Z</dc:date>
    </item>
  </channel>
</rss>

