<?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: proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678480#M20392</link>
    <description>&lt;P&gt;Instead of setting TYPE=DISCRETE on the X axis, set INTERVAL=QUARTER. This assumes that your data has some kind of data/time format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 15:21:24 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2020-08-21T15:21:24Z</dc:date>
    <item>
      <title>proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678439#M20388</link>
      <description>&lt;P&gt;I am trying to produce a line graph. I have set up y axis properly but x axis (i.e. dates from 9/1/2020 through 12/1/2022) - i would like graph to show every 3 months so that the graph isn't too busy. I tried "endpoints"&amp;nbsp; for xaxis values but it wont' produce what I need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA = data;&lt;BR /&gt;SERIES X = month_year Y = cumulative_enroll /markers lineattrs=(thickness=2) markerattrs=(symbol=circle);&lt;BR /&gt;YAXIS VALUES=(0 to 1500 by 300);&lt;BR /&gt;XAXIS TYPE = DISCRETE;&lt;BR /&gt;LABEL cumulative_enroll = "Cumulative Enrollment" ;&lt;BR /&gt;LABEL month_year = "Month/Year" ;&lt;BR /&gt;xaxis valueattrs=(size=10pt color=black);&lt;BR /&gt;yaxis valueattrs=(size=10pt color=black);&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 13:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678439#M20388</guid>
      <dc:creator>monday89</dc:creator>
      <dc:date>2020-08-21T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678446#M20389</link>
      <description>&lt;P&gt;It's really hard to suggest a solution without seeing (a portion of) the data, and also the plot that does come out. Please provide (a portion of) the data according to these instructions:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us a screen capture of the plot that is produced, and include it in your reply by clicking on the "Insert Photos" icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, did you really mean to place this question under "SAS Visual Analytics"?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678446#M20389</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-21T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678456#M20390</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/303622"&gt;@monday89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to produce a line graph. I have set up y axis properly but x axis (i.e. dates from 9/1/2020 through 12/1/2022) - i would like graph to show every 3 months so that the graph isn't too busy. I tried "endpoints"&amp;nbsp; for xaxis values but it wont' produce what I need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA = data;&lt;BR /&gt;SERIES X = month_year Y = cumulative_enroll /markers lineattrs=(thickness=2) markerattrs=(symbol=circle);&lt;BR /&gt;YAXIS VALUES=(0 to 1500 by 300);&lt;BR /&gt;XAXIS TYPE = DISCRETE;&lt;BR /&gt;LABEL cumulative_enroll = "Cumulative Enrollment" ;&lt;BR /&gt;LABEL month_year = "Month/Year" ;&lt;BR /&gt;xaxis valueattrs=(size=10pt color=black);&lt;BR /&gt;yaxis valueattrs=(size=10pt color=black);&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;IF, and this seems to be a big if for some folks, your X-axis variable is a SAS date value you could add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values = ( '01SEP2020'd to d01DEC2022'd by quarter)&lt;/P&gt;
&lt;P&gt;to the XAXIS statement.&lt;/P&gt;
&lt;P&gt;You might want to assign a format that reflects as quarter to the variable for the procedure to show quarter labels for the tickmarks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The form of 'ddMONyyyy'd , Date9. or Date7. format in quotes followed by d without a space, is the only way to show a date literal value.&amp;nbsp; The BY intervals in the values statement could be week, month, quarter year and probably a few others but those are most common for dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to consider making sure your XAXIS statement is a single statement. There are some statements that when multiple statements are used only one gets applied and it can be hard sometimes to find that particular issue. Also having all of the options together makes it easier when you modify something to identify related issues you may want to change, such as fewer tickmarks you might want larger text or a different VALUESFORMAT applied.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678456#M20390</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-21T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678480#M20392</link>
      <description>&lt;P&gt;Instead of setting TYPE=DISCRETE on the X axis, set INTERVAL=QUARTER. This assumes that your data has some kind of data/time format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678480#M20392</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-08-21T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678545#M20400</link>
      <description>&lt;P&gt;Thank you that worked!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One following question - the graph should start with 9/1/2020 but when i added "interval = quarter", it changed to "7/1/2020" as a starting point&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678545#M20400</guid>
      <dc:creator>monday89</dc:creator>
      <dc:date>2020-08-21T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678558#M20401</link>
      <description>&lt;P&gt;While keeping the INTERVAL option, try the MIN and MAX options to see if they will shrink the range.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 19:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678558#M20401</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-08-21T19:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678599#M20403</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/303622"&gt;@monday89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you that worked!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One following question - the graph should start with 9/1/2020 but when i added "interval = quarter", it changed to "7/1/2020" as a starting point&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;7/1/2020 is the first month of the third calendar quarter. So likely the interval picked that to display and not 9/2/2020 which would be the last month of the third calendar quarter.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot/m-p/678599#M20403</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-21T21:54:25Z</dc:date>
    </item>
  </channel>
</rss>

