<?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: SGPLOT, two Different Ranges on Y Axis, with different Scales for Each in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889453#M24044</link>
    <description>&lt;P&gt;Thank you, Mr. Ballard.&amp;nbsp; I will think about that and give it a shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I know what you mean about not really having enough "spread" in the values to give us a reason to do this.&amp;nbsp; I just asked the requestors about that a few minutes ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again, you always come through for me..&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 23:00:29 GMT</pubDate>
    <dc:creator>davehalltwp</dc:creator>
    <dc:date>2023-08-15T23:00:29Z</dc:date>
    <item>
      <title>SGPLOT, two Different Ranges on Y Axis, with different Scales for Each</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889448#M24042</link>
      <description>&lt;P&gt;I am doing a scatter plot on which most of the values are in a narrow lower band on the X axis.&amp;nbsp; I would like to show that lower, narrow band (with its dense data points) at a more focused scale (i.e., wider data points on Y axis), while compressing the&amp;nbsp; rest of the Y axis since there's not as much there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like this now:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davehalltwp_0-1692135662364.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86737iB295C02D80660F6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davehalltwp_0-1692135662364.png" alt="davehalltwp_0-1692135662364.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like that narrow lower section to be tall, and the upper section correspondingly short.&amp;nbsp; Is that doable?&amp;nbsp; Otherwise there's really no point for me to split it at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sgplot data = fpepc0 dattrmap = atmap; 
     scatter x = pclog y = fpe / name   = "scatter1" 
	                             group  = avisitn groupdisplay = cluster
                                 attrid = atrid;                                                                                                                          
     xaxis label         = 'Log, Plasma Concentration (ng/mL)' 
           labelattrs    = (family = "courier new" size = 9.9 pt color = black weight = bold)
           offsetmin     =  .04 
           offsetmax     =  .04; 
     yaxis label         = 'FPE Rate Constant (1/min)' 
	       ranges        = (0 - 0.010 0.011-0.125)
           labelattrs    = (family = "courier new" size = 9.9 pt color = black weight = bold);

     format avisitn visf. ;

     run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Thank you, experts...&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 21:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889448#M24042</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2023-08-15T21:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT, two Different Ranges on Y Axis, with different Scales for Each</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889452#M24043</link>
      <description>&lt;P&gt;Data would be nice and since you are using a Dattrmap data set then that data set as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You range of values is so close that , i.e. making a "break" that is all of 0.001 "units" wide not much use there.&lt;/P&gt;
&lt;P&gt;I might be tempted to add another variable for the lower and upper ranges and then use SGPANEL with Panelby using that variable and setting the Uniscale=Column so the "row" ranges could vary between the panels.&lt;/P&gt;
&lt;P&gt;With the appropriate added variable something like this would create two panels with approximately equal amount of Y axis for the range of values.&amp;nbsp; The value of the lower range verticalgroupvariable should be larger than for the top group so that it is placed second in the graph stack. The noheader option supresses have the name and value of the verticalgroupvarible appear at the top of each panel.&lt;/P&gt;
&lt;PRE&gt;proc SGPANNEL data = fpepc0 dattrmap = atmap; 
   Panelyby verticalgroupvariable / uniscale=column columns=1 noheader;
     scatter x = pclog y = fpe / name   = "scatter1" 
	                             group  = avisitn groupdisplay = cluster
                                 attrid = atrid;                                                                                                                          
     xaxis label         = 'Log, Plasma Concentration (ng/mL)' 
           labelattrs    = (family = "courier new" size = 9.9 pt color = black weight = bold)
           offsetmin     =  .04 
           offsetmax     =  .04; 
     yaxis label         = 'FPE Rate Constant (1/min)' 
	   
           labelattrs    = (family = "courier new" size = 9.9 pt color = black weight = bold);

     format avisitn visf. ;

     run; &lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2023 22:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889452#M24043</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-15T22:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT, two Different Ranges on Y Axis, with different Scales for Each</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889453#M24044</link>
      <description>&lt;P&gt;Thank you, Mr. Ballard.&amp;nbsp; I will think about that and give it a shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I know what you mean about not really having enough "spread" in the values to give us a reason to do this.&amp;nbsp; I just asked the requestors about that a few minutes ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again, you always come through for me..&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 23:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889453#M24044</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2023-08-15T23:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT, two Different Ranges on Y Axis, with different Scales for Each</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889489#M24045</link>
      <description>/*&lt;BR /&gt;Usine LOG scale for Y axis,&lt;BR /&gt;if you have extreme obs of Y .&lt;BR /&gt;*/&lt;BR /&gt;proc sgplot data=sashelp.heart ;&lt;BR /&gt;scatter x=height y= weight;&lt;BR /&gt;yaxis type=log logbase=10;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 16 Aug 2023 12:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-two-Different-Ranges-on-Y-Axis-with-different-Scales-for/m-p/889489#M24045</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-16T12:00:47Z</dc:date>
    </item>
  </channel>
</rss>

