<?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: How to modify the default plot in SAS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198381#M7394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you turn on ods trace, in front of your code:&lt;/P&gt;&lt;P&gt;ods trace on;&lt;/P&gt;&lt;P&gt;Then run the code it will show you the components which are created by the procedure.&amp;nbsp; You should then be able to recreate these in GTP/SGplot, and then change them as much as you like.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false" title="https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false"&gt;https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 14:26:13 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-08-13T14:26:13Z</dc:date>
    <item>
      <title>How to modify the default plot in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198380#M7393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I am using proc transreg (splines and knots) to generate a spline regression fit. I have tried many methods to modify the plot with no results. &lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;My plot is similar to this plot from the SAS user guide: &lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;A href="http://i.stack.imgur.com/ZU1oI.png" rel="nofollow" style="color: #d4876c;"&gt;&lt;IMG alt="enter image description here" class="jiveImage" src="http://i.stack.imgur.com/ZU1oI.png" style="border: 0px;" /&gt;&lt;/A&gt; &lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;The SAS code used to generate the plot above is&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;title2 'A Cubic Spline Fit with Knots at X=5, 10, 15';&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc transreg data=a; model identity(y) = spline(x / knots=5 10 15); run;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;How do I modify the plot so that &lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;1) only the fit line and its 95% CI are left on the graph? I wanted to get rid off the observed data points and the 95% CI for the observed. &lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;2) How do I change the y axis scale to [0, 30]&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;Your help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 13:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198380#M7393</guid>
      <dc:creator>LizC</dc:creator>
      <dc:date>2015-08-13T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the default plot in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198381#M7394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you turn on ods trace, in front of your code:&lt;/P&gt;&lt;P&gt;ods trace on;&lt;/P&gt;&lt;P&gt;Then run the code it will show you the components which are created by the procedure.&amp;nbsp; You should then be able to recreate these in GTP/SGplot, and then change them as much as you like.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false" title="https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false"&gt;https://books.google.be/books?id=7k8EL-CcoroC&amp;amp;pg=PA15&amp;amp;lpg=PA15&amp;amp;dq=sas+proc+transreg+output+gtl&amp;amp;source=bl&amp;amp;ots=VbdCJvFPVV&amp;amp;sig=1t9vqyTHqarpav5CwdD4IfIFsyg&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=0CC8Q6AEwA2oVChMIyb_x36GmxwIVw78UCh2kpg7U#v=onepage&amp;amp;q=sas%20proc%20transreg%20output%20gtl&amp;amp;f=false&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198381#M7394</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-13T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the default plot in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198382#M7395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is easier to help if you provide the full program with data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what you can do.&amp;nbsp; Enable ods trace using 'ODS TRACE ON;'&amp;nbsp; In the log, find the name of the graph and the template used for this graph.&amp;nbsp; Now, you can modify the template itself (carefully) and remove the CLM option and the SCATTERPLOT statement.&amp;nbsp; Add the options to set the axis range you want.&amp;nbsp; Compile and save the template to your SASUSER.TEMPLAT itemstore.&amp;nbsp; Now, rerun the TRANSREG procedure and you should get the graph you desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, save the data created by the procedure for this graph using ODS OUTPUT obj-name=dataset name.&amp;nbsp; Then, use SGPLOT to create the graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198382#M7395</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-08-13T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the default plot in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198383#M7396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you I will try this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198383#M7396</guid>
      <dc:creator>LizC</dc:creator>
      <dc:date>2015-08-14T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the default plot in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198384#M7397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much i will try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-modify-the-default-plot-in-SAS/m-p/198384#M7397</guid>
      <dc:creator>LizC</dc:creator>
      <dc:date>2015-08-14T14:15:42Z</dc:date>
    </item>
  </channel>
</rss>

