<?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: Help with axes tick labels PROC Template in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720700#M27726</link>
    <description>&lt;P&gt;Thanks for the suggestion. I made the following additions but the tick labels did not change and I did not receive any error in the log. The additions are in bold.&lt;/P&gt;&lt;P&gt;xaxisopts=(display=(line ticks tickvalues) &lt;STRONG&gt;labelattrs=(weight=bold size=30pt family="Arial")&lt;/STRONG&gt;)&lt;BR /&gt;yaxisopts=(display=(line ticks tickvalues) &lt;STRONG&gt;labelattrs=(weight=bold size=30pt family="Arial")&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 02:11:09 GMT</pubDate>
    <dc:creator>iatoloye</dc:creator>
    <dc:date>2021-02-21T02:11:09Z</dc:date>
    <item>
      <title>Help with axes tick labels PROC Template</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720695#M27724</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below was posted by JeffMeyers and it was super helpful. But I need help increasing the font size of the x- and y-axis. The font size in the output graph is small.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data work.Almtarfi_2;
input Cult Biomass_BRC Biomass_RB yield_BRC Yield_RB Height_BRC Heigh_RB;
CARDS;
1930 62.125 75.255 2563.16 2196.06 123.075 142.8
1933 60.62 77.91 2396.49 1965.79 106.233 124.325
1935 51.275 77.2 2317.14 2490.56 114.75 137.25
1940 63.31 73.025 2738.19 2888.38 142.85 169.5



/*Code below by Chris Hemedinger, found on the SAS blogs*/
ods trace off;
/* Prepare the correlations coeff matrix: Pearson's r method */
%macro prepCorrData(in=,out=);
/* Run corr matrix for input data, all numeric vars */
ods select none; ods noresults;
ods output PearsonCorr=blah;
proc corr data=&amp;amp;in. pearson 
outp=work._tmpCorr
vardef=df
;
run;
ods results;
ods select all;
proc sql noprint;
    select variable into :vlist separated by '|' from blah;
quit;
/* prep data for heat map */
data &amp;amp;out.;
keep x y r p;
set blah (rename=(variable=_name_));
*set work._tmpCorr(where=(_TYPE_="CORR"));
array v{*} %do i = 1 %to %sysfunc(countw(%superq(vlist),|)); %scan(%superq(vlist),&amp;amp;i,|) %end;;
array pval{*} %do i = 1 %to %sysfunc(countw(%superq(vlist),|)); p%scan(%superq(vlist),&amp;amp;i,|) %end;;
x = _NAME_;
do i = dim(v) to 1 by -1;
y = vname(v(i));
r = v(i);
p = pval(i);

/* creates a lower triangular matrix */
if (i&amp;lt;_n_) then do;
r=.;p=.;
end;
output;
end;
run;

proc datasets lib=work nolist nowarn;
delete _tmpcorr;
quit;
%mend;
options mprint;
/* Create a heat map implementation of a correlation matrix */
ods path work.mystore(update) sashelp.tmplmst(read);

proc template;
define statgraph corrHeatmap;
dynamic _Title;
begingraph;
entrytitle _Title;
rangeattrmap name='map';
/* select a series of colors that represent a "diverging" */
/* range of values: stronger on the ends, weaker in middle */
/* Get ideas from http://colorbrewer.org */
range -1 - 1 / rangecolormodel=(cxD8B365 cxF5F5F5 cx5AB4AC);
endrangeattrmap;
rangeattrvar var=r attrvar=r attrmap='map';
layout overlay /
xaxisopts=(display=(line ticks tickvalues))
yaxisopts=(display=(line ticks tickvalues));
heatmapparm x = x y = y colorresponse = r /
xbinaxis=false ybinaxis=false
name = "heatmap" display=all;
textplot x=x y=y text=p;
continuouslegend "heatmap" /
orient = vertical location = outside title="Pearson Correlation";
endlayout;
endgraph;
end;
run;

/* Build the graphs */
ods graphics /height=600 width=800 imagemap;

%prepCorrData(in=work.Almtarfi_2,out=work.Almtarfi_r);
proc sgrender data=work.Almtarfi_r template=corrHeatmap;
dynamic _title="Correlation matrix for all variables";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 00:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720695#M27724</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2021-02-21T00:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with axes tick labels PROC Template</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720696#M27725</link>
      <description>&lt;P&gt;Add to the Xaxisopts or Yaxisopt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;labelattrs = (size= fontsize)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;font size (without the &amp;lt;could reference a Style attribute, to change as your ods style changes, or a number and dimension unit of measure such as CM, MM, IN ( Inches),&amp;nbsp; PT (points) PX (pixels) or PCT.&lt;/P&gt;
&lt;P&gt;Pixels change in relation to display/image type so can be a tad flaky to set.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 01:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720696#M27725</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-21T01:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with axes tick labels PROC Template</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720700#M27726</link>
      <description>&lt;P&gt;Thanks for the suggestion. I made the following additions but the tick labels did not change and I did not receive any error in the log. The additions are in bold.&lt;/P&gt;&lt;P&gt;xaxisopts=(display=(line ticks tickvalues) &lt;STRONG&gt;labelattrs=(weight=bold size=30pt family="Arial")&lt;/STRONG&gt;)&lt;BR /&gt;yaxisopts=(display=(line ticks tickvalues) &lt;STRONG&gt;labelattrs=(weight=bold size=30pt family="Arial")&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 02:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-axes-tick-labels-PROC-Template/m-p/720700#M27726</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2021-02-21T02:11:09Z</dc:date>
    </item>
  </channel>
</rss>

