<?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 how to add tick marks with date variable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742029#M21518</link>
    <description>&lt;P&gt;Hi, I am very beginner in SAS. I have date variable and&amp;nbsp; 'daily COVID cases' variable.&lt;/P&gt;&lt;P&gt;When I make sgplot (xaxis=date and yaxis=# of cases), I only get a few tick marks on x axis. I want to add tick marks for each day. I have been searching to solve this problem for 4 days but none of article worked or I couldn't understand their explanations.....again I am very beginner, please explain basic details if you can.. Thank you so much.&lt;/P&gt;&lt;P&gt;This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be fixed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=after;
series x=date y=New_cases_fu;
xaxis interval=day label=' ' values=('08JUL2020'd to '16sep2020'd by 1) ;
yaxis label=" New cases";
RUN;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-17 at 6.27.15 PM.png" style="width: 626px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59529iF96C3C1A75868B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-17 at 6.27.15 PM.png" alt="Screen Shot 2021-05-17 at 6.27.15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 22:39:04 GMT</pubDate>
    <dc:creator>htst1003</dc:creator>
    <dc:date>2021-05-17T22:39:04Z</dc:date>
    <item>
      <title>how to add tick marks with date variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742029#M21518</link>
      <description>&lt;P&gt;Hi, I am very beginner in SAS. I have date variable and&amp;nbsp; 'daily COVID cases' variable.&lt;/P&gt;&lt;P&gt;When I make sgplot (xaxis=date and yaxis=# of cases), I only get a few tick marks on x axis. I want to add tick marks for each day. I have been searching to solve this problem for 4 days but none of article worked or I couldn't understand their explanations.....again I am very beginner, please explain basic details if you can.. Thank you so much.&lt;/P&gt;&lt;P&gt;This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be fixed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=after;
series x=date y=New_cases_fu;
xaxis interval=day label=' ' values=('08JUL2020'd to '16sep2020'd by 1) ;
yaxis label=" New cases";
RUN;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-17 at 6.27.15 PM.png" style="width: 626px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59529iF96C3C1A75868B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-17 at 6.27.15 PM.png" alt="Screen Shot 2021-05-17 at 6.27.15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 22:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742029#M21518</guid>
      <dc:creator>htst1003</dc:creator>
      <dc:date>2021-05-17T22:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to add tick marks with date variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742033#M21519</link>
      <description>&lt;P&gt;With your apparent current format if you managed to get all those tick marks you would have a LOT of collisions of text.&lt;/P&gt;
&lt;P&gt;Daily tick marks over a period of more than 30 day are really overkill and tend to create messy axis appearance.&lt;/P&gt;
&lt;P&gt;You can use VALUESROTATE=vertical&amp;nbsp; on the xaxis statement toreduce collision and maybe&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;values=('08JUL2020'd to '16sep2020'd by day)&lt;/LI-CODE&gt;
&lt;P&gt;change the format to something like format date date7. to use less text as well.&lt;/P&gt;
&lt;P&gt;Personally I would likely use a "by week" as your data shows a very typical weekly sort of cycle where some data is likely postponed and reported on the next day (Probably a Monday)&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 23:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742033#M21519</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-17T23:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to add tick marks with date variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742040#M21520</link>
      <description>&lt;P&gt;OMG......!! It worked. I am so happy and thankful!&lt;/P&gt;&lt;P&gt;It is funny how it easily works when I know what to do. I spend 4 days with this problem, and I am frustrated with my skill.&lt;/P&gt;&lt;P&gt;If it is okay, how can I increase me skill in SAS, does anyone have a good advise? Should I read a book, or do a lot of projects? where can I practice SAS gradually?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really want to be good at this but I don't know where to start...&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 01:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742040#M21520</guid>
      <dc:creator>htst1003</dc:creator>
      <dc:date>2021-05-18T01:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to add tick marks with date variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742168#M21522</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382365"&gt;@htst1003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;OMG......!! It worked. I am so happy and thankful!&lt;/P&gt;
&lt;P&gt;It is funny how it easily works when I know what to do. I spend 4 days with this problem, and I am frustrated with my skill.&lt;/P&gt;
&lt;P&gt;If it is okay, how can I increase me skill in SAS, does anyone have a good advise? Should I read a book, or do a lot of projects? where can I practice SAS gradually?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really want to be good at this but I don't know where to start...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are free training courses available.&lt;/P&gt;
&lt;P&gt;The documentation for many procedures show at least the basics: &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=pgmsashome&amp;amp;docsetTarget=home.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=pgmsashome&amp;amp;docsetTarget=home.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can even search for topics.&lt;/P&gt;
&lt;P&gt;Graphing examples with data: &lt;A href="https://support.sas.com/en/knowledge-base/graph-samples-gallery.html" target="_blank"&gt;https://support.sas.com/en/knowledge-base/graph-samples-gallery.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I started with SAS before the internet was much of an issue. I had access to a stack of documentation books about 2 feet thick. I used them. A lot.&lt;/P&gt;
&lt;P&gt;Start with one of the examples. Try options available in the documentation for procedures or statements and see what the result is.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 14:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742168#M21522</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-18T14:25:06Z</dc:date>
    </item>
  </channel>
</rss>

