<?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: Adding a second mean point to SGPLOT HBOX in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564880#M18282</link>
    <description>&lt;P&gt;One topic in the document says this: "Box plots can be combinedwith basic plot types, reference lines, and other box plots. This feature appliesto SAS 9.4M1 and to later releases."&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, other parts of the document state otherwise, as Reeza has pointed out. I&amp;nbsp;apologize for the confusion and will update the document to be consistent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for pointing out this oversight!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 12:38:23 GMT</pubDate>
    <dc:creator>JeanetteBottitta</dc:creator>
    <dc:date>2019-06-10T12:38:23Z</dc:date>
    <item>
      <title>Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564289#M18263</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping someone can help me with this. I am trying to add a second mean point to an hbox graphic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Box-Plots */
Proc SGPLOT Data=MyData;
Title "LTV by HomeRegion- &amp;amp;reportdt";
  hbox current_LTV / category=Region nooutliers;  
Run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The goal here is to provide one set of data(LTV by Region) as the hbox graphic, but then to add an additional mean point for another dataset. Not an additional box or anything else.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example would be that I would like to add the original_LTV variable by region and a secondary mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? If so, what's my best approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 20:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564289#M18263</guid>
      <dc:creator>MrManSledge</dc:creator>
      <dc:date>2019-06-06T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564300#M18264</link>
      <description>Yes it's possible, but not easily. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2013/03/24/custom-box-plots/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2013/03/24/custom-box-plots/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You basically need to switch to using highlow plots and then overlay a TEXT statement.</description>
      <pubDate>Thu, 06 Jun 2019 20:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564300#M18264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-06T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564306#M18265</link>
      <description>&lt;P&gt;You should be able to merge your other mean values into the original data set and just add a SCATTER overlay. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Box-Plots */
Proc SGPLOT Data=MyDataMerged;
Title "LTV by HomeRegion- &amp;amp;reportdt";
  hbox current_LTV / category=Region nooutliers;  
  scatter x=extra_mean y=Region / markerattrs=(symbol=plus);  
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 20:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564306#M18265</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-06-06T20:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564308#M18266</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 documentation also says that's not supported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is supported in SAS Viya though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1gylmjb4jaadfn1233wm4uzeb0e.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1gylmjb4jaadfn1233wm4uzeb0e.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The HBOX statement cannot be used with other plot statements in the SGPLOT procedure. Box plots can be overlaid with other box plots. However, overlaid box plots must have the same category variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS Viya 3.2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1gylmjb4jaadfn1233wm4uzeb0e.htm&amp;amp;docsetVersion=3.2&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1gylmjb4jaadfn1233wm4uzeb0e.htm&amp;amp;docsetVersion=3.2&amp;amp;locale=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Box plots can be overlaid with other box plots. However, overlaid box plots must have the same category variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;So does SAS Viya 3.2 apply to SAS 9.4 M6 as well? The documentation is starting to get very confusing now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 20:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564308#M18266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-06T20:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564315#M18267</link>
      <description>&lt;P&gt;Starting with SAS 9.4m1, you can overlay the following plot types on a boxplot, provided the orientation of the plots match:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SCATTER&lt;BR /&gt;NEEDLE&amp;nbsp; &amp;nbsp; /* VBOX only */&lt;BR /&gt;VECTOR&lt;BR /&gt;BAND&lt;BR /&gt;BUBBLE&lt;BR /&gt;BLOCK&lt;BR /&gt;STEP&lt;BR /&gt;HIGHLOW&lt;BR /&gt;VBARPARM&amp;nbsp; &amp;nbsp;/* VBOX only */&lt;BR /&gt;HBARPARM&amp;nbsp; &amp;nbsp;/* HBOX only */&lt;BR /&gt;POLYGON&lt;BR /&gt;WATERFALL&amp;nbsp; / * VBOX only */&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 21:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564315#M18267</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-06-06T21:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564316#M18268</link>
      <description>Ok,perhaps the 9.4 documentation can be updated to reflect that then? The HBOX statement still indicates it cannot support overlaid graphs.</description>
      <pubDate>Thu, 06 Jun 2019 21:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564316#M18268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-06T21:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564533#M18276</link>
      <description>Thanks DanH! That did it!</description>
      <pubDate>Fri, 07 Jun 2019 18:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564533#M18276</guid>
      <dc:creator>MrManSledge</dc:creator>
      <dc:date>2019-06-07T18:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a second mean point to SGPLOT HBOX</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564880#M18282</link>
      <description>&lt;P&gt;One topic in the document says this: "Box plots can be combinedwith basic plot types, reference lines, and other box plots. This feature appliesto SAS 9.4M1 and to later releases."&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0yud64khw8fuin1xgr85dgxbb7t.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, other parts of the document state otherwise, as Reeza has pointed out. I&amp;nbsp;apologize for the confusion and will update the document to be consistent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for pointing out this oversight!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-a-second-mean-point-to-SGPLOT-HBOX/m-p/564880#M18282</guid>
      <dc:creator>JeanetteBottitta</dc:creator>
      <dc:date>2019-06-10T12:38:23Z</dc:date>
    </item>
  </channel>
</rss>

