<?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 Box plot, connecting line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Box-plot-connecting-line/m-p/621397#M19383</link>
    <description>&lt;P&gt;Hi community,&lt;BR /&gt;&lt;BR /&gt;Recently I received an update request for the figure I have done before, but the update is so specific that I couldn't find any appropriate solution for it.&lt;BR /&gt;So I decided to ask here.&lt;BR /&gt;Below is the figure which needs to be updated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="box plot.PNG" style="width: 751px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35780i5E317E6B37B6D8FF/image-dimensions/751x283?v=v2" width="751" height="283" role="button" title="box plot.PNG" alt="box plot.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is the update requested.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;“During the review of the response, It was noted that for these figures the EOT boxes &lt;STRONG&gt;should not be connected&lt;/STRONG&gt; with the others”. (The part highlighted above).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I think I found the responsible part in the macro (%mf_boxplot) which is created connecting lines. (I am calling the macro in the actual program).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="macro.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35781iE49F5A65A24061B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="macro.PNG" alt="macro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is the macro calling with input parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%mf_boxplot(data   = datin,					/*lab dataset to plot*/
            		rsl    = aval,				/*lab results variable to plot*/
            		grpvar = avisitn,	   		/*group by variable*/
            		grpfmt = avisit.,			/*group by variable format*/
            		symvar = trt,				/*treatment variable*/
			symfmt = $trt.,			     	/*treatment variable format*/
			symlab = Treatment,			/*treatment label*/
            		connect= median,			/*point to connect between boxplots*/
            		percent= 10,
			hlabel  = Visit,
			vlabel  = %BQUOTE(&amp;amp;test),
			ymax    = &amp;amp;ymax,
			t      = t,					/*Draws tops and bottoms on the whiskers*/
			bwidth = 1					/*Width of boxplots*/
				);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;So the actual problem is to remove the connecting line between last visit and EOT.&lt;BR /&gt;&lt;BR /&gt;Could anyone please give some idea on this.&lt;BR /&gt;Any response will be helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 11:13:43 GMT</pubDate>
    <dc:creator>webart999ARM</dc:creator>
    <dc:date>2020-01-31T11:13:43Z</dc:date>
    <item>
      <title>Box plot, connecting line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-plot-connecting-line/m-p/621397#M19383</link>
      <description>&lt;P&gt;Hi community,&lt;BR /&gt;&lt;BR /&gt;Recently I received an update request for the figure I have done before, but the update is so specific that I couldn't find any appropriate solution for it.&lt;BR /&gt;So I decided to ask here.&lt;BR /&gt;Below is the figure which needs to be updated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="box plot.PNG" style="width: 751px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35780i5E317E6B37B6D8FF/image-dimensions/751x283?v=v2" width="751" height="283" role="button" title="box plot.PNG" alt="box plot.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is the update requested.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;“During the review of the response, It was noted that for these figures the EOT boxes &lt;STRONG&gt;should not be connected&lt;/STRONG&gt; with the others”. (The part highlighted above).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I think I found the responsible part in the macro (%mf_boxplot) which is created connecting lines. (I am calling the macro in the actual program).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="macro.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35781iE49F5A65A24061B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="macro.PNG" alt="macro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is the macro calling with input parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%mf_boxplot(data   = datin,					/*lab dataset to plot*/
            		rsl    = aval,				/*lab results variable to plot*/
            		grpvar = avisitn,	   		/*group by variable*/
            		grpfmt = avisit.,			/*group by variable format*/
            		symvar = trt,				/*treatment variable*/
			symfmt = $trt.,			     	/*treatment variable format*/
			symlab = Treatment,			/*treatment label*/
            		connect= median,			/*point to connect between boxplots*/
            		percent= 10,
			hlabel  = Visit,
			vlabel  = %BQUOTE(&amp;amp;test),
			ymax    = &amp;amp;ymax,
			t      = t,					/*Draws tops and bottoms on the whiskers*/
			bwidth = 1					/*Width of boxplots*/
				);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;So the actual problem is to remove the connecting line between last visit and EOT.&lt;BR /&gt;&lt;BR /&gt;Could anyone please give some idea on this.&lt;BR /&gt;Any response will be helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 11:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-plot-connecting-line/m-p/621397#M19383</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2020-01-31T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Box plot, connecting line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-plot-connecting-line/m-p/621486#M19387</link>
      <description>&lt;P&gt;When using GPLOT we would need:&lt;/P&gt;
&lt;P&gt;1) any AXIS and SYMBOL statements in effect&lt;/P&gt;
&lt;P&gt;2) The appropriate GPLOT code without any macro references&lt;/P&gt;
&lt;P&gt;3) data set to test code, likely only need a couple of values of something that behaves like your &amp;amp;rel &amp;amp;grpvar and &amp;amp;connect&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A typical approach would be to have the data so that your problem group was actually plotted with a different Y variable using a different Symbol statement and OVERLAY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code as text by copying from the editor or log and pasting into a code box opened using the forum's {I} or "running man" icon.&lt;/P&gt;
&lt;P&gt;I can't copy code and may suggested changes to a picture and likely won't feel like retyping huge amounts of code the show the appropriate location .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plot statement might look something like&lt;/P&gt;
&lt;P&gt;Plo2t &amp;amp;connect*&amp;amp;grpvar=1 EOTYvariable*&amp;amp;grpvar=2&amp;nbsp; / overlay&lt;/P&gt;
&lt;P&gt;Where the EOT value is a different variable than the current &amp;amp;connect. You may need to modify the Plot statement similarly using different symbol references. I haven't done a box plot in GPLOT for likely 8 years and nuances get lost.&lt;/P&gt;
&lt;P&gt;I have to &lt;STRONG&gt;guess&lt;/STRONG&gt; that your macro variables in the Plot statement are single variable references. If they are something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also be likely to move this from GPLOT to SGPLOT as there are lots more options there and a SAS/Graph license is not longer needed.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-plot-connecting-line/m-p/621486#M19387</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-31T16:46:57Z</dc:date>
    </item>
  </channel>
</rss>

