<?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 changing y axis scale in boxplot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757431#M30125</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to display a boxplot of a quantitative variable (diox_q3) according to a binary variable (statut_kt) so i used this code :&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA= NHL; vbox diox_q3/category=statut_kt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the boxplot is not readable ; the scale of the y axis is not appropriate since my quantitative variable has very low values :&lt;/P&gt;&lt;P&gt;median=5.20*10^-8&lt;/P&gt;&lt;P&gt;Q1(25%)= 4.026*10^-9&lt;/P&gt;&lt;P&gt;Q3(75%)=3.12*10^-7&lt;/P&gt;&lt;P&gt;How can i change the scale of the y axis to get a relevant boxplot ?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 19:05:40 GMT</pubDate>
    <dc:creator>Aline1610</dc:creator>
    <dc:date>2021-07-27T19:05:40Z</dc:date>
    <item>
      <title>changing y axis scale in boxplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757431#M30125</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to display a boxplot of a quantitative variable (diox_q3) according to a binary variable (statut_kt) so i used this code :&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA= NHL; vbox diox_q3/category=statut_kt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the boxplot is not readable ; the scale of the y axis is not appropriate since my quantitative variable has very low values :&lt;/P&gt;&lt;P&gt;median=5.20*10^-8&lt;/P&gt;&lt;P&gt;Q1(25%)= 4.026*10^-9&lt;/P&gt;&lt;P&gt;Q3(75%)=3.12*10^-7&lt;/P&gt;&lt;P&gt;How can i change the scale of the y axis to get a relevant boxplot ?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 19:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757431#M30125</guid>
      <dc:creator>Aline1610</dc:creator>
      <dc:date>2021-07-27T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: changing y axis scale in boxplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757657#M30153</link>
      <description>&lt;P&gt;Let us know if this helps!&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/changing-y-axis-scale-in-box-plot/td-p/638841" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/changing-y-axis-scale-in-box-plot/td-p/638841&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 11:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757657#M30153</guid>
      <dc:creator>SAS_Cares</dc:creator>
      <dc:date>2021-07-28T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: changing y axis scale in boxplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757764#M30157</link>
      <description>&lt;P&gt;First, you really should say what is "wrong" with the graph, or better post it.&lt;/P&gt;
&lt;P&gt;Second better is to provide actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are a couple of data steps that create what I an &lt;STRONG&gt;guessing&lt;/STRONG&gt; is your problem, a few values that are relatively much large larger than the values that would comprise the box part of the plot and a default plot. Then follow two approaches to controlling the Yaxis to display some box.&lt;/P&gt;
&lt;P&gt;Data and default plot:&lt;/P&gt;
&lt;PRE&gt;data plot2;
   do i=1 to 100;
      x=rand('normal',5.0e-8,1.0e-8);
      output;
   end;
   /*add a few larger values*/
   do i=101 to 110;
      x=rand('normal',3.0e-4,1.0e-4);
      output;
   end;
run;

PROC SGPLOT DATA= plot2; 
   vbox x;
run; &lt;/PRE&gt;
&lt;P&gt;And two different plots:&lt;/P&gt;
&lt;PRE&gt;/* force yaxis to show smaller range trims outliers*/

PROC SGPLOT DATA= plot2; 
   vbox x/;
   yaxis values=(1.0e-8 to 1.0e-7 by 5.0e-9);
run; 

/* use log axis*/
PROC SGPLOT DATA= plot2; 
   vbox x/;
   yaxis type=log logbase=10 logstyle=linear;
run; &lt;/PRE&gt;
&lt;P&gt;The actual range of values and increment in the VALUES= option likely need tweaking for your data.&lt;/P&gt;
&lt;P&gt;It may also help to increase the size of your graph display area with an ODS Graphics option statement.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/changing-y-axis-scale-in-boxplot/m-p/757764#M30157</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-28T15:50:55Z</dc:date>
    </item>
  </channel>
</rss>

