<?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: Changing Main Title for Fit Plot in Proc GLM in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480531#M16606</link>
    <description>&lt;P&gt;The entrytitle part explains how things work.&amp;nbsp; You don't submit them.&amp;nbsp; You have to read the what to do part and follow those instructions.&amp;nbsp; If you continue into the how it works section you have to realize that code that is shown is not necessarily designed for you to submit.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 16:54:42 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2018-07-23T16:54:42Z</dc:date>
    <item>
      <title>Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323117#M11312</link>
      <description>&lt;P&gt;I sincerely hope this question has not been posted already since I do hate wasting the time of others. With that said, how do I change the Main Title in the fit plot produced by PROC GLM. For example, in the plot below, how do I change "Fit Plot for mpg" to lets say "Fit plot for Miles per Gallon". As far as I know, changing the label for the variable will not do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6627iD135652E355D2D45/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="Fit Plot" title="Fit Plot" width="561" height="401" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Jan 2017 01:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323117#M11312</guid>
      <dc:creator>pkfamily</dc:creator>
      <dc:date>2017-01-07T01:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323127#M11314</link>
      <description>&lt;P&gt;You would normally need to play with the graph template. I find it less trouble to OUTPUT the predicted and limit values and produce my own graph with SGPLOT. But in this case, you could get away with a renaming the variable to a literal name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option validvarname=any;
proc glm data=sashelp.cars(rename=mpg_city='Miles Per Gallon'n) plots(only)=fitplot;
model 'Miles Per Gallon'n = horsepower;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6629i75E3048DDBABBA12/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="FitPlot1.png" title="FitPlot1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 23:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323127#M11314</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-01-06T23:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323132#M11315</link>
      <description>&lt;P&gt;Wow that's crazy. I didn't realize you could change variable names to literal ones. I would also like to add that variable names are still limited to 32 characters which would also limit the title length using the above method.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 01:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323132#M11315</guid>
      <dc:creator>pkfamily</dc:creator>
      <dc:date>2017-01-07T01:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323409#M11321</link>
      <description>&lt;P&gt;You could change the template for the Fit plot&amp;nbsp; (Stat.GLM.Graphics.Fit).&lt;/P&gt;
&lt;P&gt;The change would be to modify the line:&lt;/P&gt;
&lt;P&gt;entrytitle _TITLE " for " _DEPNAME;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;entrytitle _TITLE " for " _DEPLABEL;&lt;/P&gt;
&lt;P&gt;to use the dependent variable label in the title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/323409#M11321</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-09T16:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480510#M16603</link>
      <description>&lt;P&gt;Dear PGstats,&lt;/P&gt;
&lt;P&gt;I thank you in advance for you time and help.&lt;/P&gt;
&lt;P&gt;In my case, I am looking to output from proc glm to proc template (or proc sgplot). Alternatively, if I cannot, I want to change: 1) Title of the graph to 'Analysis of covariance for Differences in HS'; the X Title to '2006HS'; 3) the Y Title to '2009HS'; and&amp;nbsp;to re-grading into 5 intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS inquiry - Change graph titles.jpg" style="width: 362px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21942iB36D34EF5C4F8770/image-dimensions/362x468?v=v2" width="362" height="468" role="button" title="SAS inquiry - Change graph titles.jpg" alt="SAS inquiry - Change graph titles.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phan S.&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>Mon, 23 Jul 2018 16:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480510#M16603</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2018-07-23T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480513#M16604</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/10/11/advanced-ods-graphics-title-change-macro/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/10/11/advanced-ods-graphics-title-change-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a macro for changing graph titles.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480513#M16604</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-07-23T16:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480528#M16605</link>
      <description>&lt;P&gt;Thank you so much for your prompt help, although I got lost at and thereafter entrytitle _TITLE&lt;/P&gt;
&lt;P&gt;Everything become red syntax&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;BR /&gt;%let Graphics_AnomPlot2 = My Second Title;&lt;BR /&gt;proc logistic data=Neuralgia;&lt;BR /&gt; ods select anomplot;&lt;BR /&gt; class Treatment Sex / param=glm;&lt;BR /&gt; model Pain= Treatment|Sex Age;&lt;BR /&gt; lsmeans Treatment / plots=anom;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;* Suppress both titles.;&lt;BR /&gt;%let Graphics_AnomPlot = ;&lt;BR /&gt;%let Graphics_AnomPlot2 = ;&lt;BR /&gt;proc logistic data=Neuralgia;&lt;BR /&gt; ods select anomplot;&lt;BR /&gt; class Treatment Sex / param=glm;&lt;BR /&gt; model Pain= Treatment|Sex Age;&lt;BR /&gt; lsmeans Treatment / plots=anom;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my Trouble thereafter the below------------------&lt;/P&gt;
&lt;P&gt;entrytitle _TITLE;&lt;BR /&gt;entrytitle textattrs=GRAPHVALUETEXT _CLSTR;&lt;BR /&gt;mvar Graphics_AnomPlot Graphics_AnomPlot2;&lt;BR /&gt;if (EXISTS(GRAPHICS_ANOMPLOT))&lt;BR /&gt; entrytitle GRAPHICS_ANOMPLOT;&lt;BR /&gt;else&lt;BR /&gt; entrytitle _TITLE;&lt;BR /&gt;endif;&lt;BR /&gt;if (EXISTS(GRAPHICS_ANOMPLOT2))&lt;BR /&gt; entrytitle GRAPHICS_ANOMPLOT2;&lt;BR /&gt;else&lt;BR /&gt; entrytitle textattrs=GRAPHVALUETEXT _CLSTR;&lt;BR /&gt;endif;&lt;/P&gt;
&lt;P&gt;%grtitle;&lt;BR /&gt;%grtitle(path=stat);&lt;BR /&gt;%grtitle(path=stat.logistic);&lt;/P&gt;
&lt;P&gt;proc template; list / store=work.templat; quit;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480528#M16605</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2018-07-23T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Main Title for Fit Plot in Proc GLM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480531#M16606</link>
      <description>&lt;P&gt;The entrytitle part explains how things work.&amp;nbsp; You don't submit them.&amp;nbsp; You have to read the what to do part and follow those instructions.&amp;nbsp; If you continue into the how it works section you have to realize that code that is shown is not necessarily designed for you to submit.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Main-Title-for-Fit-Plot-in-Proc-GLM/m-p/480531#M16606</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-07-23T16:54:42Z</dc:date>
    </item>
  </channel>
</rss>

