<?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: Resizing xaxis in sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173469#M6417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for these tips. With the &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;MarkerSizeResponse=variable option, I'm unsure of how to use that. I created a frequency variable called count and added it to my program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=freqs noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatter x= VAR1 y=VAR2/group=VAR3 MarkerSizeResponse=count&amp;nbsp; markerattrs=(size=9);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 19:53:20 GMT</pubDate>
    <dc:creator>sarahsasuser</dc:creator>
    <dc:date>2014-11-20T19:53:20Z</dc:date>
    <item>
      <title>Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173463#M6411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a plot where a lot of the data is clustered around the 0 to 250 values on xaxis. It's difficult to see how many datapoints there are and so I'd like to expand the x-axis. However, the max value for the x-axis is over 2000 and there are not many datapoints in between 1000 and 2000. Therefore making the plot wider also increases the dead space. Is there any way to zoom in on the lower end of the x-axis and then truncate the the middle of the plot? Ideally, I'd like to show 0 to 500 by 50 and then 500 to 2000 by 500.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 14:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173463#M6411</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2014-11-16T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173464#M6412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sarah, a few options might be to log the x-axis if there are no 0 values, or to use Broken axis. I don't know what version of SAS you have but I'm sure one of these links will help you to utilise broken axis techniques:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/" title="http://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/"&gt; Broken Y-Axis - Graphically Speaking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/12/29/broken-axis/" title="http://blogs.sas.com/content/graphicallyspeaking/2013/12/29/broken-axis/"&gt; Broken Axis - Graphically Speaking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 15:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173464#M6412</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2014-11-16T15:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173465#M6413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Is there a way to limit the broken piece to just the x-axis like in the image on the right below? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="broken axis.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7898_broken axis.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Another option might be to increase the dot/bubble size according to the frequency. I have a number of the same values and increasing the size of the dot would be a good way to show the data. I have searched for this on the forum using the term bubble, but those articles usually apply to a third variable, not the frequency. Do you have any advice on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 15:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173465#M6413</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2014-11-16T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173466#M6414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now, the options for you will be to use one of the following:&lt;/P&gt;&lt;P&gt;- Use the broken axis as is now, but erase the full break indicator using DRAW or Annotate.&lt;/P&gt;&lt;P&gt;- Use the panel idea to break (&lt;SPAN style="color: #2989c5;"&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/"&gt;Broken Y-Axi&lt;/A&gt;s&lt;/SPAN&gt;) using GTL,and turn off the cell borders and axis lines.&lt;/P&gt;&lt;P&gt;- I have seen users add a break symbol like you want using draw or annotate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set size by frequency, generally we use a third variable for sizing.&amp;nbsp; You can use the BUBBLE plot or SCATTER with MarkerSizeResponse=variable option.&amp;nbsp; You will have to process your data to only keep unique (x,y) values with frequency counts. See blog article on &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/05/28/bivariate-response-graph/"&gt;Bivariate Response&lt;/A&gt;.&amp;nbsp; You make a good suggestion to automatically size by frequency when the (x, y) values are identical.&amp;nbsp; We will see if it is feasible to add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, we have heard from many users including yourself that often a simple axis break may be preferred.&amp;nbsp; So, while this does not help you now, I am happy to say this is now included for the next release as shown here.&amp;nbsp; Multiple break symbols are supported including the ones you have shown.&amp;nbsp; Break is only shown if there is an axis or frame to break.&amp;nbsp; Yes, the data is made up to test the feature, with values of height &amp;gt; 470. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7899" alt="AxisBreak.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7899_AxisBreak.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 17:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173466#M6414</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-16T17:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173467#M6415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sanjay, these are great options!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 04:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173467#M6415</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2014-11-17T04:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173468#M6416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see what you can do now, see:&amp;nbsp; &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/11/18/axis-break-appearance-macro/" title="http://blogs.sas.com/content/graphicallyspeaking/2014/11/18/axis-break-appearance-macro/"&gt;Axis Break Appearance Macro - Graphically Speaking&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 19:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173468#M6416</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-19T19:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173469#M6417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for these tips. With the &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;MarkerSizeResponse=variable option, I'm unsure of how to use that. I created a frequency variable called count and added it to my program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=freqs noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatter x= VAR1 y=VAR2/group=VAR3 MarkerSizeResponse=count&amp;nbsp; markerattrs=(size=9);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173469#M6417</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2014-11-20T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173470#M6418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I see now that I need to use proc template. I've never used that proc, but I got the markersizeresponse option to work with it. I'm just having trouble keeping the group variable intact so that the circles will be two different colors depending on the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173470#M6418</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2014-11-20T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing xaxis in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173471#M6419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like we left that off the SGPLOT scatter statement due to advent of Bubble.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; bubble x=height y=weight size=age;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must have scatter, then use GTL.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define statgraph markerSize;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph / datasymbols=(circlefilled squarefilled);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle 'Weight by Height by Age for all Students';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatterplot x=height y=weight / markersizeresponse=age&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; group=sex name='a' filledoutlinedmarkers=true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discretelegend 'a';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; endlayout;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgrender data=sashelp.class template=markerSize;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-xaxis-in-sgplot/m-p/173471#M6419</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-20T20:51:02Z</dc:date>
    </item>
  </channel>
</rss>

