<?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: Add number of observation to a plot in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470220#M21061</link>
    <description>&lt;P&gt;First, move to proc splot and GTL, it is far more powerful, gplot is very old.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, take a look through this blog which gives examples for almost any graph you want, and you will find examples of what you want:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you want is datalabel:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 08:16:12 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-06-14T08:16:12Z</dc:date>
    <item>
      <title>Add number of observation to a plot</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470202#M21060</link>
      <description>&lt;P&gt;Now I have a code that plots the cumulative return of firms from 1994 till now but I want to add&amp;nbsp;number of observation that used to calculate the&amp;nbsp;&lt;SPAN&gt;cumulative return at each time point. Some sample code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate orientation=landscape;
goptions device=pdfc; /*Plot Saved in Home Directory*/
ods pdf file=&amp;amp;locationin;
axis1 label=(angle=90 'Value of \$1 invested in a portfolio');
axis2 label=('Date');
symbol1 interpol =join ci =green w = 3 co =green;
symbol2 interpol =join ci =blue co =blue value =star;
proc gplot data =work.CumRet;
Title &amp;amp;titlein ;
plot top*date= 1 bottom*date= 2 / overlay legend vaxis=axis1 haxis=axis2;
run;quit;&lt;BR /&gt;ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Or, if my description is not clear enough, generally, how could I add the&amp;nbsp;number of observation at each point of a curve plot? Given I have the number of observation&amp;nbsp;variable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 06:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470202#M21060</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-14T06:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add number of observation to a plot</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470220#M21061</link>
      <description>&lt;P&gt;First, move to proc splot and GTL, it is far more powerful, gplot is very old.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, take a look through this blog which gives examples for almost any graph you want, and you will find examples of what you want:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you want is datalabel:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 08:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470220#M21061</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-14T08:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add number of observation to a plot</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470337#M21064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202368"&gt;@Sasadomo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Now I have a code that plots the cumulative return of firms from 1994 till now but I want to add&amp;nbsp;number of observation that used to calculate the&amp;nbsp;&lt;SPAN&gt;cumulative return at each time point. Some sample code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, if my description is not clear enough, generally, how could I add the&amp;nbsp;number of observation at each point of a curve plot? Given I have the number of observation&amp;nbsp;variable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With Proc Gplot, annotate data set.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-number-of-observation-to-a-plot/m-p/470337#M21064</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-14T14:50:51Z</dc:date>
    </item>
  </channel>
</rss>

