<?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: Problems labeling the Y-Axis using GTL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/254990#M9241</link>
    <description>&lt;P&gt;Try this code please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's because you were using the rowaxes column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart(where=(ageatstart &amp;gt; 56));
keep sex systolic diastolic;
run;

PROC TEMPLATE;
	DEFINE STATGRAPH jphjitter;
		DYNAMIC _title _yaxislabel;
		BEGINGRAPH /designwidth=8in designheight=6in
      				datasymbols=(circlefilled);
			ENTRYTITLE _title; *will ultimately be a dynamic;
			ENTRYFOOTNOTE HALIGN=left
						  "";
				LAYOUT LATTICE / COLUMNS = 1; *??? necessary;
					LAYOUT OVERLAY / XAXISOPTS = ( display=(label tickvalues)
												   label = 'Sex'
												 )
									 YAXISOPTS = ( display=(label tickvalues)
												   label = 'SBP'
												 );
						*ENTRY TEXTATTRS = graphlabeltext 'Systolic' / valign=top;
						SCATTERPLOT X = sex Y = systolic /	JITTER = AUTO
															MARKERATTRS = (	SIZE = 8
																			SYMBOL = CIRCLEFILLED
																		  )
															;
					ENDLAYOUT;
				ENDLAYOUT;
		ENDGRAPH;
	END;
RUN;

ods listing style=htmlblue gpath='C:\Users\yex7977\Desktop\Helpful plots'  image_dpi=&amp;amp;dpi;
ods graphics / reset noscale width=&amp;amp;w height=&amp;amp;h imagename='GTL_HeartBoxJitter2';
proc sgrender data=heart template=jphjitter;
dynamic _trans=0.7 _elem='graphdata3' _title = 'Systolic BP vs Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Mar 2016 16:34:59 GMT</pubDate>
    <dc:creator>djrisks</dc:creator>
    <dc:date>2016-03-07T16:34:59Z</dc:date>
    <item>
      <title>Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/254985#M9240</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using GTL for the first time and am stuck on a problem. I'm practicing using the "heart" sashelp data and am trying to label the Y axis as "sex". My code is below, which does not draw a Y axis label. Having googled the problem, I don't understand why the code doesn't draw this label. For what it's worth, I use SAS 9.4 on a Windows computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart(where=(ageatstart &amp;gt; 56));
keep sex systolic diastolic;
run;

PROC TEMPLATE;
	DEFINE STATGRAPH jphjitter;
		DYNAMIC _title _yaxislabel;
		BEGINGRAPH /designwidth=8in designheight=6in
      				datasymbols=(circlefilled);
			ENTRYTITLE _title; *will ultimately be a dynamic;
			ENTRYFOOTNOTE HALIGN=left
						  "";
				LAYOUT LATTICE / COLUMNS = 1 ROWDATARANGE = UNION; *??? necessary;
					ROWAXES;
						ROWAXIS/DISPLAY =(TICKS TICKVALUES)
								GRIDDISPLAY = ON
								OFFSETMAX = 0.1;
					ENDROWAXES;
					LAYOUT OVERLAY / XAXISOPTS = ( display=(label tickvalues)
												   label = 'Sex'
												 )
									 YAXISOPTS = ( display=(label tickvalues)
												   label = 'SBP'
												 );
						*ENTRY TEXTATTRS = graphlabeltext 'Systolic' / valign=top;
						SCATTERPLOT X = sex Y = systolic /	JITTER = AUTO
															MARKERATTRS = (	SIZE = 8
																			SYMBOL = CIRCLEFILLED
																		  )
															;
					ENDLAYOUT;
				ENDLAYOUT;
		ENDGRAPH;
	END;
RUN;

ods listing style=htmlblue gpath='C:\Users\Benjamin\Documents\JPH Lab\Data\RQA Initial Project\Graphics\Scatter Plots'  image_dpi=&amp;amp;dpi;
ods graphics / reset noscale width=&amp;amp;w height=&amp;amp;h imagename='GTL_HeartBoxJitter2';
proc sgrender data=heart template=jphjitter;
dynamic _trans=0.7 _elem='graphdata3' _title = 'Systolic BP vs Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/254985#M9240</guid>
      <dc:creator>benbuck</dc:creator>
      <dc:date>2016-03-07T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/254990#M9241</link>
      <description>&lt;P&gt;Try this code please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's because you were using the rowaxes column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart(where=(ageatstart &amp;gt; 56));
keep sex systolic diastolic;
run;

PROC TEMPLATE;
	DEFINE STATGRAPH jphjitter;
		DYNAMIC _title _yaxislabel;
		BEGINGRAPH /designwidth=8in designheight=6in
      				datasymbols=(circlefilled);
			ENTRYTITLE _title; *will ultimately be a dynamic;
			ENTRYFOOTNOTE HALIGN=left
						  "";
				LAYOUT LATTICE / COLUMNS = 1; *??? necessary;
					LAYOUT OVERLAY / XAXISOPTS = ( display=(label tickvalues)
												   label = 'Sex'
												 )
									 YAXISOPTS = ( display=(label tickvalues)
												   label = 'SBP'
												 );
						*ENTRY TEXTATTRS = graphlabeltext 'Systolic' / valign=top;
						SCATTERPLOT X = sex Y = systolic /	JITTER = AUTO
															MARKERATTRS = (	SIZE = 8
																			SYMBOL = CIRCLEFILLED
																		  )
															;
					ENDLAYOUT;
				ENDLAYOUT;
		ENDGRAPH;
	END;
RUN;

ods listing style=htmlblue gpath='C:\Users\yex7977\Desktop\Helpful plots'  image_dpi=&amp;amp;dpi;
ods graphics / reset noscale width=&amp;amp;w height=&amp;amp;h imagename='GTL_HeartBoxJitter2';
proc sgrender data=heart template=jphjitter;
dynamic _trans=0.7 _elem='graphdata3' _title = 'Systolic BP vs Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/254990#M9241</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-07T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255002#M9242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking the code could be further reduced because you are only plotting a graph with one cell, so no need for the Layout Lattice. I also put back in your output location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart(where=(ageatstart &amp;gt; 56));
keep sex systolic diastolic;
run;

PROC TEMPLATE;
	DEFINE STATGRAPH jphjitter;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   DYNAMIC _title _yaxislabel;
		BEGINGRAPH /designwidth=8in designheight=6in
      				datasymbols=(circlefilled);
			ENTRYTITLE _title; *will ultimately be a dynamic;
			ENTRYFOOTNOTE HALIGN=left
						  "";
					LAYOUT OVERLAY / XAXISOPTS = ( display=(label tickvalues)
												   label = 'Sex'
												 )
									 YAXISOPTS = ( display=(label tickvalues)
												   label = 'SBP'
												 );
						*ENTRY TEXTATTRS = graphlabeltext 'Systolic' / valign=top;
						SCATTERPLOT X = sex Y = systolic /	JITTER = AUTO
															MARKERATTRS = (	SIZE = 8
																			SYMBOL = CIRCLEFILLED
																		  );
					ENDLAYOUT;
		ENDGRAPH;
	END;
RUN;

ods listing style=htmlblue gpath='C:\Users\Benjamin\Documents\JPH Lab\Data\RQA Initial Project\Graphics\Scatter Plots'  image_dpi=&amp;amp;dpi;
ods graphics / reset noscale width=&amp;amp;w height=&amp;amp;h imagename='GTL_HeartBoxJitter2';
proc sgrender data=heart template=jphjitter;
dynamic _trans=0.7 _elem='graphdata3' _title = 'Systolic BP vs Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 17:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255002#M9242</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-07T17:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255032#M9244</link>
      <description>&lt;P&gt;You say you are using SAS 9.4.&amp;nbsp;&amp;nbsp; Therefore you can use the JITTER option on the SCATTER statement in PROC SGPLOT. No need to mess with the GTL. For an example, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/07/10/make-better-graphs-with-sas-9-4/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/07/10/make-better-graphs-with-sas-9-4/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255032#M9244</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-07T18:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255043#M9245</link>
      <description>Thanks for the help! I've meaning to learn to use GTL for a while and these are my first baby steps into it.</description>
      <pubDate>Mon, 07 Mar 2016 18:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255043#M9245</guid>
      <dc:creator>benbuck</dc:creator>
      <dc:date>2016-03-07T18:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems labeling the Y-Axis using GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255066#M9246</link>
      <description>You're welcome. I understand. There's a lot of helpful information out there such as the graphically speaking SAS blog and the PharmaSUG and SAS Global Forum Papers. This is a supportive community that will help you to learn more about GTL too. ☺</description>
      <pubDate>Mon, 07 Mar 2016 19:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problems-labeling-the-Y-Axis-using-GTL/m-p/255066#M9246</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-07T19:17:46Z</dc:date>
    </item>
  </channel>
</rss>

