<?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 PLOTS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703595#M215613</link>
    <description>&lt;P&gt;Hi all, I have run the program stated below and i am getting a box plot with only few observations being used in the x axis. I am unsure if i clear enough.&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA = HypAnl.HypAnalysis1;&lt;BR /&gt;VBOX DBP / CATEGORY = EthRaceCd;&lt;BR /&gt;LABEL DBP = 'Latest DBP Measurement';&lt;BR /&gt;LABEL EthRaceCd = 'Ethnicity/RaceGroup';&lt;BR /&gt;TITLE 'Diastolic blood pressures by ethnicity/RaceGroup';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, when i run the above program, i am getting just a single box. I am unsure if it is correct. I am also attaching the results below. Any help is appreciated ! Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 12:11:53 GMT</pubDate>
    <dc:creator>jyothisri</dc:creator>
    <dc:date>2020-12-04T12:11:53Z</dc:date>
    <item>
      <title>BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703595#M215613</link>
      <description>&lt;P&gt;Hi all, I have run the program stated below and i am getting a box plot with only few observations being used in the x axis. I am unsure if i clear enough.&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA = HypAnl.HypAnalysis1;&lt;BR /&gt;VBOX DBP / CATEGORY = EthRaceCd;&lt;BR /&gt;LABEL DBP = 'Latest DBP Measurement';&lt;BR /&gt;LABEL EthRaceCd = 'Ethnicity/RaceGroup';&lt;BR /&gt;TITLE 'Diastolic blood pressures by ethnicity/RaceGroup';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, when i run the above program, i am getting just a single box. I am unsure if it is correct. I am also attaching the results below. Any help is appreciated ! Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 12:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703595#M215613</guid>
      <dc:creator>jyothisri</dc:creator>
      <dc:date>2020-12-04T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703596#M215614</link>
      <description>&lt;P&gt;Many people will not download attachments. You can include in your reply a screen capture of the output you want to show us by clicking on the camera icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We also would need to see a portion of your data (provided via &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing that you have only one level of&amp;nbsp;&lt;SPAN&gt;EthRaceCd, that's why you only get one box. But that's a guess. You should check that.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 12:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703596#M215614</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-04T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703598#M215616</link>
      <description>Thanks for the reply paige. I shall do as advised by you.</description>
      <pubDate>Fri, 04 Dec 2020 12:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703598#M215616</guid>
      <dc:creator>jyothisri</dc:creator>
      <dc:date>2020-12-04T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703675#M215654</link>
      <description>Post your log, and check it against a known data set, like sashelp.heart first.</description>
      <pubDate>Fri, 04 Dec 2020 16:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703675#M215654</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-04T16:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703676#M215655</link>
      <description>&lt;P&gt;Thanks for that idea Reiza !! i ll do that .&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 16:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703676#M215655</guid>
      <dc:creator>jyothisri</dc:creator>
      <dc:date>2020-12-04T16:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703690#M215660</link>
      <description>&lt;P&gt;I suggest being specific with YAXIS LABEL = ..... and XAXIS LABEL = ......&lt;BR /&gt;&lt;BR /&gt;However when I tested your data it came up as separate boxes so it might have somethin to do with your data...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 18:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703690#M215660</guid>
      <dc:creator>Cooksam13</dc:creator>
      <dc:date>2020-12-04T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703708#M215672</link>
      <description>&lt;P&gt;Hi jyothisri,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend trying this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA = HypAnl.HypAnalysis1;&lt;BR /&gt;VBOX DBP / CATEGORY = EthRaceCd;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;XAXIS LABEL = 'Ethnicity/Race Group'&lt;BR /&gt;&lt;BR /&gt;YAXIS VALUES = (0 TO 100 BY 10)&lt;BR /&gt;LABEL = 'Latest DBP Measurement';&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 19:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703708#M215672</guid>
      <dc:creator>ssills24</dc:creator>
      <dc:date>2020-12-04T19:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703719#M215674</link>
      <description>I believe OPs data goes beyond the 100 range, given a previous post where they wanted a reference line over 100.</description>
      <pubDate>Fri, 04 Dec 2020 20:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703719#M215674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-04T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703749#M215679</link>
      <description>&lt;P&gt;Hi ssils24,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried but it still shows the same. does this have something to do with the data ? I am unsure. Some of them advised not to attach a post but t share a screenshot . I tried but it didnt work out. I am attaching the data file below. Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 23:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703749#M215679</guid>
      <dc:creator>jyothisri</dc:creator>
      <dc:date>2020-12-04T23:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703891#M215730</link>
      <description>&lt;P&gt;Hi! I came from the class Canvas discussion page, I'm in your class so I tried out your dataset with my code as well as your code with your dataset and it worked fine for me. This is what I get from running your code with your dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yeji6144_1-1607207553106.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52357iF4A4AFD2242BD1BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yeji6144_1-1607207553106.png" alt="yeji6144_1-1607207553106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe try re-running your dataset before you run your code? Also make sure your LIBNAME statements are correct and that it's referring to the right file.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 05:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703891#M215730</guid>
      <dc:creator>yeji6144</dc:creator>
      <dc:date>2020-12-14T05:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: BOX PLOTS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703895#M215733</link>
      <description>&lt;P&gt;Hello jyothisri!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to solve this issue you need to include an XAXIS statement that designates the different categories and values for EthRaceCd. First, make sure to include the the keyword "CATEGORY" instead of "GROUP" in the PROC statement since EthRaceCd is character rather than numeric. In addition, in the XAXIS statement make sure to include both the VALUES and the DISPLAYVALUES statement. The VALUES statement should tell SAS to display the values that you want along the x-axis and the DISPLAYVALUES statement will tell SAS how you want those axis labels to appear in the final result. I have included some example code for you to look at below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;PROC SGPLOT DATA = HypAnl.HypAnalysis1 NOAUTOLEGEND;&lt;/DIV&gt;&lt;DIV&gt;VBOXDBP / CATEGORY = EthRaceCd;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;XAXISVALUES= ( 'HIS' 'NHA' 'NHB' 'NHO' 'NHW' )&lt;/DIV&gt;&lt;DIV&gt;VALUESDISPLAY = ('Hispanic' 'NH Asian' 'NH Black' 'NH Other Race' 'NH White')&lt;/DIV&gt;&lt;DIV&gt;OFFSETMIN= 0.2&lt;/DIV&gt;&lt;DIV&gt;OFFSETMAX = 0.2&lt;/DIV&gt;&lt;DIV&gt;LABEL= 'Ethnicity/Race Group'&lt;/DIV&gt;&lt;DIV&gt;LABELATTRS= (WEIGHT= BOLD);&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that this helps!&amp;nbsp;&lt;/P&gt;&lt;P&gt;- James&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 23:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BOX-PLOTS/m-p/703895#M215733</guid>
      <dc:creator>JamesPatton01</dc:creator>
      <dc:date>2020-12-05T23:54:34Z</dc:date>
    </item>
  </channel>
</rss>

