<?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: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907377#M24260</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299055"&gt;@montgomerybarre&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yup, the variable was somehow read in as character. Dumb mistake, thanks all!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc import or other "import" widget perhaps? From spreadsheet? All it takes is a very common two or more header row for a column to make character values with Import.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 19:38:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-12-11T19:38:06Z</dc:date>
    <item>
      <title>Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907132#M24253</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="montgomerybarre_0-1702079519957.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91093i19BFDB755477AA85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="montgomerybarre_0-1702079519957.png" alt="montgomerybarre_0-1702079519957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I haver never had this issue before, seems like no matter what I try, sgplot is forcing this diagonal line. I have tried sorting the data in different ways, using different yaxis, xaxis, and discreteorder options, the scatter, series, and other statements... etc. All producing the same problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=final ;&lt;BR /&gt;scatter x=month_year y=rate / group=state;&lt;BR /&gt;yaxis type=discrete;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 23:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907132#M24253</guid>
      <dc:creator>montgomerybarre</dc:creator>
      <dc:date>2023-12-08T23:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907133#M24254</link>
      <description>&lt;P&gt;Did you intentionally make the YAXIS to be discrete?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 00:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907133#M24254</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-12-09T00:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907134#M24255</link>
      <description>&lt;P&gt;I tried discrete, linear, etc.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 00:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907134#M24255</guid>
      <dc:creator>montgomerybarre</dc:creator>
      <dc:date>2023-12-09T00:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907135#M24256</link>
      <description>&lt;P&gt;If you can't share an example of your actual data then show us the complete output for Proc Contents for the data set.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 00:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907135#M24256</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-12-09T00:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907152#M24257</link>
      <description>Make sure your variable "rate " is NUMERIC tpye ,not CHARACTER.</description>
      <pubDate>Sat, 09 Dec 2023 10:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907152#M24257</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-09T10:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907374#M24259</link>
      <description>&lt;P&gt;Yup, the variable was somehow read in as character. Dumb mistake, thanks all!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 19:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907374#M24259</guid>
      <dc:creator>montgomerybarre</dc:creator>
      <dc:date>2023-12-11T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Every plot I make in proc SGPLOT forces a diagonal line via odd sorting of y axis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907377#M24260</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299055"&gt;@montgomerybarre&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yup, the variable was somehow read in as character. Dumb mistake, thanks all!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc import or other "import" widget perhaps? From spreadsheet? All it takes is a very common two or more header row for a column to make character values with Import.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 19:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Every-plot-I-make-in-proc-SGPLOT-forces-a-diagonal-line-via-odd/m-p/907377#M24260</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-12-11T19:38:06Z</dc:date>
    </item>
  </channel>
</rss>

