<?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 Changing the size of tick mark labels proc glimmix mean plot. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/418889#M14435</link>
    <description>&lt;P&gt;Using sas v 9.4, I am trying to get my graphs in the correct format for a specific journal. All of the graph text including axis labels and tick mark labels need to be Arial 8 point font. I am able to create an editable graph so that I can open in ods graphics editor and easily change the axis label font and size, but not the size of the font for the tick marks &amp;nbsp;with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;ods listing style=statistical sge=on;&lt;/P&gt;&lt;P&gt;proc glimmix;&lt;/P&gt;&lt;P&gt;class trainer;&lt;/P&gt;&lt;P&gt;model resp=trainer/ link=log solution;&lt;/P&gt;&lt;P&gt;random int/ subject=horse type=ar(1);&lt;/P&gt;&lt;P&gt;lsmeans trainer/ ilink cl adjust=tukey plot=meanplot(ilink);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change the font size for the tick marks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Katy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2017 17:40:27 GMT</pubDate>
    <dc:creator>kivester</dc:creator>
    <dc:date>2017-12-06T17:40:27Z</dc:date>
    <item>
      <title>Changing the size of tick mark labels proc glimmix mean plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/418889#M14435</link>
      <description>&lt;P&gt;Using sas v 9.4, I am trying to get my graphs in the correct format for a specific journal. All of the graph text including axis labels and tick mark labels need to be Arial 8 point font. I am able to create an editable graph so that I can open in ods graphics editor and easily change the axis label font and size, but not the size of the font for the tick marks &amp;nbsp;with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;ods listing style=statistical sge=on;&lt;/P&gt;&lt;P&gt;proc glimmix;&lt;/P&gt;&lt;P&gt;class trainer;&lt;/P&gt;&lt;P&gt;model resp=trainer/ link=log solution;&lt;/P&gt;&lt;P&gt;random int/ subject=horse type=ar(1);&lt;/P&gt;&lt;P&gt;lsmeans trainer/ ilink cl adjust=tukey plot=meanplot(ilink);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change the font size for the tick marks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Katy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 17:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/418889#M14435</guid>
      <dc:creator>kivester</dc:creator>
      <dc:date>2017-12-06T17:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of tick mark labels proc glimmix mean plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419086#M14444</link>
      <description>&lt;P&gt;I don't think the option exists in PROC GLIMMIX itself. But you can modify the underlying template that creates the graph like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took an example from the SAS documentation for demonstration purposes. I use ODS TRACE ON before the GLIMMIX Procedure to find the relevant template. Then I write the template to the log with the following PROC TEMPLATE. Finally, I simply Copy Paste the PROC TEMPLATE into my editor, make the relevant changes, run the revised PROC TEMPLATE and rerun the PROC GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* GLIMMIX Example from SAS Documentation */
data plants;
input Type $ @;
do Block = 1 to 3;
input StemLength @;
output;
end;
datalines;
Clarion   32.7 32.3 31.5 
Clinton   32.1 29.7 29.1 
Knox      35.7 35.9 33.1 
;

/* Use ODS Trace On to find the used template for the DiffPlot */
ods graphics on;
ods trace on;
ods select DiffPlot;
proc glimmix data=plants order=data plots=Diffogram;
	class Block Type;
	model StemLength = Block Type;
	lsmeans Type;
run;
ods graphics off;

/* Write the template to the log */
proc template;
  source Stat.Graphics.DiffPlot;
run;

/* - Copy/Paste in the PROC TEMPLATE Step from the log
   - Make the relevant changes to the template 
   - Rerun the PROC GLIMMIX                            */
proc template;
source Stat.Graphics.DiffPlot;
define statgraph Stat.Graphics.DiffPlot;
   dynamic _Title _Ylabel _LegTitle _cpoint _lines _byline_ _bytitle_ _byfootnote_;
   BeginGraph / designwidth=defaultDesignHeight;
      entrytitle _TITLE;
      layout lattice / rows=1 columns=1;
         layout overlayequated / equatetype=square yaxisopts=(display=(line ticks tickvalues)
            offsetmin=0.04 offsetmax=0.04 griddisplay=off) 


            /* Make the change to the template here */
            xaxisopts=(display=(line ticks tickvalues) offsetmin=0.04 offsetmax=0.04 griddisplay=off TICKVALUEATTRS=(SIZE=8));

            seriesplot y=YVL x=XVL / break=true lineattrs=GRAPHGRIDLINES datatransparency=0
               rolename=(_id1=ID_REF) tip=(_id1);
            seriesplot y=YHL x=XHL / break=true lineattrs=GRAPHGRIDLINES datatransparency=0
               rolename=(_id1=ID_REF) tip=(_id1);
            lineparm slope=1 y=0 x=0 / clip=true lineattrs=GRAPHREFERENCE (pattern=dash)
               extend=true;
            if (_LINES)
               seriesplot y=LSM_ x=LSM / break=true group=GROUP index=INDEX lineattrs=(
                  thickness=GraphFit:linethickness) rolename=(_id1=ID_COMP) tip=(_id1) name=
                  "Means" primary=true;
            endif;
            if (_CPOINT=1)
               if (_LINES)
                  scatterplot y=LSM_Y x=LSM_X / group=GROUP index=INDEX markerattrs=(symbol=
                     GraphDataDefault:MarkerSymbol) rolename=(_id1=ID_MX _id2=ID_MY _id3=ID_CB
                     ) tip=(_id1 _id2 _id3);
               else
                  scatterplot y=LSM_Y x=LSM_X / group=GROUP index=INDEX rolename=(_id1=ID_MX
                     _id2=ID_MY _id3=ID_DIFF _id4=ID_CB) tip=(_id1 _id2 _id3 _id4) name=
                     "Means" primary=true;
               endif;
            endif;
            scatterplot y=MIN x=LSM1 / markerattrs=(size=0) datalabel=LEVEL;
            scatterplot y=LSM2 x=MAX / markerattrs=(size=0) datalabel=LEVEL;
         endlayout;
         columnheaders;
            discretelegend "Means" / title=_LEGTITLE titleattrs=GRAPHVALUETEXT valign=bottom
               halign=center across=2;
         endcolumnheaders;
      endlayout;
      if (_BYTITLE_)
         entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;
      else
         if (_BYFOOTNOTE_)
            entryfootnote halign=left _BYLINE_;
         endif;
      endif;
   EndGraph;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 11:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419086#M14444</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-12-07T11:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of tick mark labels proc glimmix mean plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419710#M14450</link>
      <description>&lt;P&gt;An alternative to Draycut's suggestion is to derive a new Style from the one you want (say HTMLBlue), and change the GRAPHVALUEFONT setting in the "class GraphFonts" section.&amp;nbsp; Then, use this style with your program.&amp;nbsp; With "sans-serif", you will likely get Arial, but you can specify Arial if you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define style myStyle; 
      parent = Styles.HTMLBlue; 
      style GraphFonts from GraphFonts                                                      
         "Fonts used in graph styles" /                                                       
         'GraphValueFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;",8pt);             
; 
   end;

ods html style=htmlblue;
proc sgplot data=sashelp.class;
  vbar age;
run;

ods html style=myStyle;
proc sgplot data=sashelp.class;
  vbar age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 21:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419710#M14450</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-12-08T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of tick mark labels proc glimmix mean plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419828#M14462</link>
      <description>Wonderful! Thank you!&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Dec 2017 17:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-tick-mark-labels-proc-glimmix-mean-plot/m-p/419828#M14462</guid>
      <dc:creator>kivester</dc:creator>
      <dc:date>2017-12-09T17:11:40Z</dc:date>
    </item>
  </channel>
</rss>

