<?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: how to draw a figure includes box plot and scatter plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580269#M18657</link>
    <description>I would put them in different variables and add a separate series statement for the second series. I think that's a bit harder in 9.3 but doable.</description>
    <pubDate>Fri, 09 Aug 2019 20:38:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-09T20:38:28Z</dc:date>
    <item>
      <title>how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580248#M18652</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31643i808387FD3376BC61/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to draw this example figure in sas 9.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, there are two groups in the data, blue and red. blue one needs to draw the boxplot with mean connected, but the red one only needs to connect mean without box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:15:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580248#M18652</guid>
      <dc:creator>glz</dc:creator>
      <dc:date>2019-08-09T19:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580249#M18653</link>
      <description>&lt;P&gt;Here's an example of how you can do this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Boxplot-multiple-variable-connecting-stats-using-Annotate/m-p/244360/highlight/true#M8846" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Boxplot-multiple-variable-connecting-stats-using-Annotate/m-p/244360/highlight/true#M8846&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the code uses SASHELP.CARS you should be able to run the code directly and test it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars out=cars;
  by origin;
run;


proc sgplot data=cars nocycleattrs noautolegend;
  by origin;
  vbox mpg_city / category=type connect=q1;
  vbox mpg_city / category=type nofill connect=q3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580249#M18653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-09T19:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580255#M18654</link>
      <description>&lt;P&gt;Thanks for your quick reply. But this is not what i want, this is an example for "Box Plot with Multiple Connect Lines".&lt;/P&gt;&lt;P&gt;What I need is the two groups are showing in different formats, blue group is a box plot, but the red group only needs to connect mean, does not need box. And i want these two groups in one figure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580255#M18654</guid>
      <dc:creator>glz</dc:creator>
      <dc:date>2019-08-09T19:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580256#M18655</link>
      <description>&lt;P&gt;Ok, can you show your current data structure and anything you've tried so far. That code should have given you an idea of how to proceed-basically you can have multiple graphing statements in a plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.3 does have more limitations though, which exact version are you on? 9.3 earlier versions are really limited for example while the ones closer to 9.4 are more up to date. By the way, 9.3 is about 7 years old or more, upgrades are usually included with SAS license so if you can upgrade I'd highly recommend it.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580256#M18655</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-09T20:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580264#M18656</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following code:&lt;/P&gt;&lt;P&gt;proc sgplot data=subset noautolegend nocycleattrs;&lt;BR /&gt;vbox Result / category=time group=status connect=mean;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: if I add group comment after / , then the two groups are both shown in box plot. I do not know how to separate these two groups with different formats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is an easy way to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580264#M18656</guid>
      <dc:creator>glz</dc:creator>
      <dc:date>2019-08-09T20:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580269#M18657</link>
      <description>I would put them in different variables and add a separate series statement for the second series. I think that's a bit harder in 9.3 but doable.</description>
      <pubDate>Fri, 09 Aug 2019 20:38:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580269#M18657</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-09T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580348#M18661</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class nway;
class sex;
var weight;
output out=temp mean=mean;
run;

data class;
 set sashelp.class(keep=sex height) temp;
 run;
 
 proc sgplot data=class;
 vbox height/ category=sex connect=mean;
 series x=sex y=mean/markerattrs=(symbol=circlefilled) markers lineattrs=(pattern=dash color=red);
 run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Aug 2019 12:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580348#M18661</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-08-10T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw a figure includes box plot and scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580549#M18674</link>
      <description>&lt;P&gt;Thanks very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 13:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-a-figure-includes-box-plot-and-scatter-plot/m-p/580549#M18674</guid>
      <dc:creator>glz</dc:creator>
      <dc:date>2019-08-12T13:56:12Z</dc:date>
    </item>
  </channel>
</rss>

