<?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: Y axis break on scatter plot with mean values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470072#M16181</link>
    <description>&lt;P&gt;The AXISBREAK option is availabe as of SAS 9.4 TS1M3 -&amp;gt; is your version TS1M3 or higher?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, that means it will not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you intending to have two YAXIS statements as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65221"&gt;@Giampaolo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;Apologies for making it more difficult, here is the log.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Giampaolo&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 19:57:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-13T19:57:51Z</dc:date>
    <item>
      <title>Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470060#M16178</link>
      <description>&lt;P&gt;Dear&amp;nbsp; SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to make a graph with a break on the Y axis. I am analyzing&amp;nbsp;&lt;SPAN&gt;costs subdivided by different categories.&amp;nbsp;&lt;/SPAN&gt;The x axis is discrete and shows a scatter with the mean for each group of observations.&lt;/P&gt;&lt;P&gt;I have used&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ranges&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but it does not work. I receive this error: "ERROR 79-322: Expecting a -."&lt;BR /&gt;I am using the SAS 9.4 version. Could&amp;nbsp;anybody please let me know what am I doing wrong?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=wneuro9 (where=(DMF ne '' AND  Admgroup =0)) mean noprint;
  class DMF;
  var ACT_TOTAL_COSTad;
  output out= costmean(where=(_type_ eq 1) rename=(DMF=GPRG))
  mean   =  mean ;
run;

data combined;
  format Mean 6.  ;
  set costmean(keep=GPRG mean) wneuro9(where=(DMF ne '') keep=DMF ACT_TOTAL_COSTad);
run;

ods graphics / reset width=5in height=3in ;
proc sgplot data=combined noborder noautolegend;
	styleattrs axisbreak=bracket;
 		scatter x=dmf y=ACT_TOTAL_COSTad / jitter clusterwidth=0.8 
          markerattrs=(symbol=plus size=5) transparency=0.8;
			yaxis  ranges=(min - 60000 230000 - max);
		highlow x=GPRG low=mean high=mean / nofill type=bar barwidth=0.4;
  		xaxis type=discrete labelattrs=(size=9) display=(noline noticks nolabel);
  		yaxis  ranges=(min - 60000 230000 - max)labelattrs=(size=9) display=(noline noticks) grid label='COST';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470060#M16178</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T19:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470062#M16179</link>
      <description>&lt;P&gt;Post the log please, it usually indicates where the error is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470062#M16179</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T19:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470069#M16180</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Apologies for making it more difficult, here is the log.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Giampaolo&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470069#M16180</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470072#M16181</link>
      <description>&lt;P&gt;The AXISBREAK option is availabe as of SAS 9.4 TS1M3 -&amp;gt; is your version TS1M3 or higher?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, that means it will not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you intending to have two YAXIS statements as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65221"&gt;@Giampaolo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;Apologies for making it more difficult, here is the log.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Giampaolo&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470072#M16181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T19:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470079#M16183</link>
      <description>How do I know if the version I have is TS1M3 ?&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470079#M16183</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470081#M16184</link>
      <description>&lt;P&gt;I included two YAXIS statement because I&amp;nbsp;thought that having&amp;nbsp;scatter and highlow superimposed would require adjusting the axis twice. I did not have the chance to verify if this was correct because I did not get any output both with one and two YAXIs statements&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470081#M16184</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470082#M16185</link>
      <description>&lt;P&gt;proc product_status;run;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470082#M16185</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470085#M16186</link>
      <description>For Base SAS Software ...&lt;BR /&gt;Custom version information: 9.4_M1&lt;BR /&gt;Image version information: 9.04.01M1P120413&lt;BR /&gt;For SAS/STAT ...&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470085#M16186</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470088#M16187</link>
      <description>&lt;P&gt;Only one YAXIS or XAXIS will apply so having multiple statements&amp;nbsp;is not needed and may result in the procedure not using&amp;nbsp;the "best" one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a separate appearing axis a YAXIS2 or XAXIS2 to show a different axis on the other side of the graph with different options may be appropriate.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470088#M16187</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-13T20:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470089#M16188</link>
      <description>&lt;P&gt;So your version does not support the AXISBREAK option, so you need to remove it for now and try your code again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, for developing SAS graphs, start with the minimal necessary code, just your scatter and plot statements first. Then start adding the options to make it look good after you've verified your data is plotting correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470089#M16188</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T20:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470090#M16189</link>
      <description>Thank you.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470090#M16189</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470093#M16191</link>
      <description>&lt;P&gt;Yes the data plotted correctly when I did not attempt breaking the Y axis.&lt;/P&gt;&lt;P&gt;So is there a&amp;nbsp;solution for previous SAS versions? Do I need to change the template?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470093#M16191</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470096#M16192</link>
      <description>&lt;P&gt;The axis will break, you don't have control over how it looks though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65221"&gt;@Giampaolo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes the data plotted correctly when I did not attempt breaking the Y axis.&lt;/P&gt;
&lt;P&gt;So is there a&amp;nbsp;solution for previous SAS versions? Do I need to change the template?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470096#M16192</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Y axis break on scatter plot with mean values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470097#M16193</link>
      <description>All right.&lt;BR /&gt;Thank you!&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y-axis-break-on-scatter-plot-with-mean-values/m-p/470097#M16193</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2018-06-13T20:21:11Z</dc:date>
    </item>
  </channel>
</rss>

