<?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 code the plot showing the incidence over time in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/907824#M24267</link>
    <description>Thank you so much for your reply, and it's very helpful! Since I currently don't have a specific dataset, I will keep working on it. Thank you again!</description>
    <pubDate>Wed, 13 Dec 2023 16:57:30 GMT</pubDate>
    <dc:creator>YYK273</dc:creator>
    <dc:date>2023-12-13T16:57:30Z</dc:date>
    <item>
      <title>How to code the plot showing the incidence over time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885856#M23996</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am wondering how can plot the following figure showing the incidence over time. This figure is from the published paper&amp;nbsp;&lt;SPAN&gt;Zajacova A, Montez JK. Physical Functioning Trends among US Women and Men Age 45-64 by Education Level. Biodemography Soc Biol. 2017;63(1):21-30. doi: 10.1080/19485565.2016.1263150. PMID: 28287310; PMCID: PMC5494255.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am wondering how to code this kind of figure. I would really appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="nihms868018f3.jpg" style="width: 684px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86001i825AB4778F310827/image-size/large?v=v2&amp;amp;px=999" role="button" title="nihms868018f3.jpg" alt="nihms868018f3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885856#M23996</guid>
      <dc:creator>YYK273</dc:creator>
      <dc:date>2023-07-21T16:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to code the plot showing the incidence over time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885866#M23997</link>
      <description>&lt;P&gt;It would certainly help to see a portion of your SAS data set (not an Excel file). Please provide the data as working SAS data step code, as shown in these &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;. Do not provide data in other form. Do not ignore this request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general this is done via PROC SGPLOT. Depending on your data, we can be more specific.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885866#M23997</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-21T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to code the plot showing the incidence over time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885875#M23998</link>
      <description>&lt;P&gt;The data set should contain a variable for the Xaxis, the Yaxis and a group variable, such as education.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The type of graph would be a Series, if the data has lots of dates for the example, or a Spline to smooth data .&lt;/P&gt;
&lt;P&gt;If the data consists of one value per year then likely a Spline. Your SAS install should have the SASHELP.STOCKS data set that would allow you to run the following example:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.stocks;
   title "Series plot of daily opening stock prices";
   series x=date y=open /group=stock ;
run;

proc summary  data=sashelp.stocks nway;
   class stock date;
   format date year4.;
   var open;
   output out=splineplot (drop=_type_ _freq_) mean=;
run;

proc sgplot data=splineplot;
   title "Spline plot of annual average opening stock prices";
   spline x=date y=open /group=stock ;
run;
proc sgplot data=splineplot;
   title "Series plot of annual average opening stock prices";
   series x=date y=open /group=stock ;
run;&lt;/PRE&gt;
&lt;P&gt;The examples show daily data, then summarize the values to one value per year and plot with both a Spline and Series plot. Splines apply smoothing functions to make nicer curves. You see the role of Group variable to create different line types and legend entries to describe the lines.&lt;/P&gt;
&lt;P&gt;Read the description of Spline for some details affecting interpretation of the appearance in the online help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are &lt;STRONG&gt;many&lt;/STRONG&gt; options to control appearance&amp;nbsp; once you get a basic graph of the type you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/392547"&gt;@YYK273&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am wondering how can plot the following figure showing the incidence over time. This figure is from the published paper&amp;nbsp;&lt;SPAN&gt;Zajacova A, Montez JK. Physical Functioning Trends among US Women and Men Age 45-64 by Education Level. Biodemography Soc Biol. 2017;63(1):21-30. doi: 10.1080/19485565.2016.1263150. PMID: 28287310; PMCID: PMC5494255.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I am wondering how to code this kind of figure. I would really appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="nihms868018f3.jpg" style="width: 684px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86001i825AB4778F310827/image-size/large?v=v2&amp;amp;px=999" role="button" title="nihms868018f3.jpg" alt="nihms868018f3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/885875#M23998</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-21T17:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to code the plot showing the incidence over time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/907824#M24267</link>
      <description>Thank you so much for your reply, and it's very helpful! Since I currently don't have a specific dataset, I will keep working on it. Thank you again!</description>
      <pubDate>Wed, 13 Dec 2023 16:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-code-the-plot-showing-the-incidence-over-time/m-p/907824#M24267</guid>
      <dc:creator>YYK273</dc:creator>
      <dc:date>2023-12-13T16:57:30Z</dc:date>
    </item>
  </channel>
</rss>

