<?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: Creating a box plots without the box using using PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873846#M23760</link>
    <description>&lt;P&gt;This suggestion was very helpful, and I was able to create the charts that I had envisioned. However, for categories where the high and low values are either the same, or very close to each other, none of the lines show in the chart (see attachment). Is there a way to make sure the lines show (even if it looks like just one line in the chart) when the min and max values are either the same or nearly the same?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=data noautolegend;
	panelby label / layout=rowlattice onepanel noheaderborder sort=data
                              novarname HEADERBACKCOLOR=white HEADERATTRS=(Size=12 Weight=Bold) proportional;
  highlow x=category low=min high=max/ highcap=serif lowcap=serif
                     lineattrs=(color=darkgray thickness=1) ;
 rowaxis label="ROC Scores By Model"  grid labelattrs=(size=12 weight=bold) ;
  	scatter x=category y=mean/ markerattrs=(color=darkblue size=4 symbol=diamondfilled); 
	colaxis  display=(nolabel) discreteorder=data;
run;
&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 May 2023 10:56:08 GMT</pubDate>
    <dc:creator>GuyTreepwood</dc:creator>
    <dc:date>2023-05-04T10:56:08Z</dc:date>
    <item>
      <title>Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873742#M23752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I would like to create a panel of visualizations that have vertical lines that span between min and max stat values for every category, along with a marker for mean values. I am able to get most of the way there using PROC SGPANEL using the vbox statement, however, I am not able to get rid of the boxes themselves. I would like to keep the full whiskers along with their caps, and the marker for the mean value for every categorical series.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is the last version of the code that I used to create the plots:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data = dataset;
  panelby label / layout=rowlattice onepanel noheaderborder sort=data
                              novarname HEADERBACKCOLOR=white HEADERATTRS=(Size=12 Weight=Bold) proportional;
  vbox ROC /category = tuners  nofill WHISKERPCT=0 nomedian WHISKERATTRS=(color=darkgray) meanattrs=(color=darkgray size=5 symbol=x);
	rowaxis label="ROC Scores By Model"  grid labelattrs=(size=12 weight=bold) ;
	colaxis  display=(nolabel) discreteorder=data;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 May 2023 22:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873742#M23752</guid>
      <dc:creator>GuyTreepwood</dc:creator>
      <dc:date>2023-05-03T22:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873746#M23753</link>
      <description>&lt;P&gt;Example data if you want a working solution.&lt;/P&gt;
&lt;P&gt;You don't mention anything about outliers. Are you just wanting to connect the high and low value within each category? Plus a marker for the Mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might summarize the data an then have a HIGHLOW plot and a SCATTER plot superimposed.&lt;/P&gt;
&lt;P&gt;Here is a small example with SGPLOT. Your summary step would include the Panelby variable(s).&lt;/P&gt;
&lt;PRE&gt;data example;
   do category= 'A', 'B', 'C';
      do i= 1 to 10;
         value = rand('integer',100);
         output;
      end;
   end;
run;

proc summary data=example nway;
   class category;
   var value;
   output out=summary min=lowval max=highval mean=meanval;
run;

proc sgplot data=summary;
   highlow x=category low=lowval high=highval/ highcap=serif lowcap=serif
                     lineattrs=(color=darkgray)
  ;
   scatter x=category y=meanval/ markerattrs=(color=darkgray size=5mm symbol=x);
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 May 2023 23:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873746#M23753</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T23:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873846#M23760</link>
      <description>&lt;P&gt;This suggestion was very helpful, and I was able to create the charts that I had envisioned. However, for categories where the high and low values are either the same, or very close to each other, none of the lines show in the chart (see attachment). Is there a way to make sure the lines show (even if it looks like just one line in the chart) when the min and max values are either the same or nearly the same?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=data noautolegend;
	panelby label / layout=rowlattice onepanel noheaderborder sort=data
                              novarname HEADERBACKCOLOR=white HEADERATTRS=(Size=12 Weight=Bold) proportional;
  highlow x=category low=min high=max/ highcap=serif lowcap=serif
                     lineattrs=(color=darkgray thickness=1) ;
 rowaxis label="ROC Scores By Model"  grid labelattrs=(size=12 weight=bold) ;
  	scatter x=category y=mean/ markerattrs=(color=darkblue size=4 symbol=diamondfilled); 
	colaxis  display=(nolabel) discreteorder=data;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2023 10:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873846#M23760</guid>
      <dc:creator>GuyTreepwood</dc:creator>
      <dc:date>2023-05-04T10:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873860#M23763</link>
      <description>&lt;P&gt;It looks like the highlow plot won't draw caps for short lines.&amp;nbsp; This restriction is stated in the docs:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Restriction
Caps are not displayed for very short bars. Bar height must be at least twice the size of the cap in order for the cap to appear.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Going back to your original boxplot idea, what about adding&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;boxwidth=0 lineattrs=(thickness=0)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to the options on your VBOX statement?&amp;nbsp; For a simple SGPLOT, I think that gets rid of the box.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873860#M23763</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-04T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873881#M23765</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/77218"&gt;@GuyTreepwood&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This suggestion was very helpful, and I was able to create the charts that I had envisioned. However, for categories where the high and low values are either the same, or very close to each other, none of the lines show in the chart (see attachment). Is there a way to make sure the lines show (even if it looks like just one line in the chart) when the min and max values are either the same or nearly the same?&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that represents your data then there is so little range of values I doubt a box plot makes any sense to display on that scale.&lt;/P&gt;
&lt;P&gt;Or did you extract one panel? Perhaps you don't actually want all of the rowaxis to be the same. Try adding UNISCALE=Column to the Panelby statement.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873881#M23765</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-04T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a box plots without the box using using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873889#M23766</link>
      <description>&lt;P&gt;I do not want to change the y-axis scales in the panel, so I will keep the chart as it is, without the caps, and make a note of the restriction regarding the close caps found in the documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-box-plots-without-the-box-using-using-PROC-SGPANEL/m-p/873889#M23766</guid>
      <dc:creator>GuyTreepwood</dc:creator>
      <dc:date>2023-05-04T15:06:44Z</dc:date>
    </item>
  </channel>
</rss>

