<?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: getting values on a gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400673#M13702</link>
    <description>&lt;P&gt;The documentation....&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And a specific example:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1cawf0y89smnsn17dccvhoqjvd6" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1cawf0y89smnsn17dccvhoqjvd6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2017 17:19:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-03T17:19:28Z</dc:date>
    <item>
      <title>getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399923#M13697</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get values (n sample size) on a gplot for each timepoint?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset = all ;&lt;BR /&gt;axis1 order =(1 to 4 by 1) label= (a=90 'Year') minor=none;&lt;BR /&gt;axis2 order = (4.5 to 4.6 by 0.01) label = ('Natural Log of lsmeans MSE Scores') minor=none ;&lt;BR /&gt;symbol1 interpol=std2mjt v=none color=blue r=1 w=2 v=plus;&lt;BR /&gt;symbol2 interpol=std2mjt v=none color=red r=1 w=2;&lt;BR /&gt;proc gplot data=means1;&lt;BR /&gt;plot estimate*year=cd / haxis = axis1 vaxis=axis2; where cd~=.;&lt;BR /&gt;run;&lt;BR /&gt;quit;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 21:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399923#M13697</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-09-29T21:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399943#M13698</link>
      <description>&lt;P&gt;the symbol statement for the would use the POINTLabel = option with "#varname": Pointlabel=("#sales") would label the displayed point with the value of the variable SAles associeated with that point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 22:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399943#M13698</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-29T22:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399967#M13699</link>
      <description>&lt;P&gt;If you have the option to use SGPLOT this is much easer use either a TEXT or MARKERCHAR statement.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 02:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/399967#M13699</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-30T02:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400670#M13700</link>
      <description>&lt;P&gt;Thank you ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the code below and it didn't work. any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset = all ;&lt;BR /&gt;axis1 order =(1 to 4 by 1) label= (a=0 'Year') minor=none;&lt;BR /&gt;axis2 order = (4.5 to 4.6 by 0.01) label = (a=95 'Mean Scores') minor=none ;&lt;BR /&gt;symbol1 interpol=std2mjt v=none color=blue r=1;&lt;BR /&gt;symbol2 interpol=std2mjt v=none color=red r=1;&lt;BR /&gt;&lt;STRONG&gt;symbol3 v=dot cv=black pointlabel=("#ratio" c=black position=top);&lt;/STRONG&gt;&lt;BR /&gt;proc gplot data=data;&lt;BR /&gt;plot logscores*year=ratio/ haxis = axis1 vaxis=axis2; where ratio~=.;;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400670#M13700</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-10-03T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400671#M13701</link>
      <description>&lt;P&gt;thank you Reeza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an example code for the sgplot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400671#M13701</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-10-03T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400673#M13702</link>
      <description>&lt;P&gt;The documentation....&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And a specific example:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1cawf0y89smnsn17dccvhoqjvd6" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1cawf0y89smnsn17dccvhoqjvd6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/400673#M13702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-03T17:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401038#M13703</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help with this. However, I still have yet to figure out how to make the sample size for each time point appear on the plot.&lt;/P&gt;&lt;P&gt;I am using a longitudinal dataset over 4 years. The exposure is a binary variable measured at baseline and the outcome is continuous. sgplot didn't seem to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code, but it doesn't seem to take:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset = all ;&lt;BR /&gt;axis1 order =(0 to 4 by 1) label= (a=0 'Year') minor=none;&lt;BR /&gt;axis2 order = (4.5 to 4.6 by 0.1) label = (a=95 'Mean Scores') minor=none ;&lt;BR /&gt;symbol1 interpol=std2mjt v=none color=blue r=1;&lt;BR /&gt;symbol2 interpol=std2mjt v=none color=red r=1;&lt;BR /&gt;symbol3 v=dot i=none pointlabel=(position=top j=l "#ratio");&lt;BR /&gt;proc gplot data=means1;&lt;BR /&gt;plot estimate*year=ratio;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401038#M13703</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-10-04T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401040#M13704</link>
      <description>&lt;P&gt;That's nice. Post sample data so we can actually run your code please. Or use a representative data set from SASHELP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post the SGPLOT code that didn't appear to work. I don't have access to SAS GRAPH.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I'll move this post to the graphics forum so someone with access and expertise in SAS/GRAPH can help you if that's what you're choosing to use. SG Procedures produce better quality graphs, just as an FYI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401040#M13704</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401156#M13705</link>
      <description>&lt;P&gt;Hi Reeza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to generate the sample size n similar to when I generate the lsmeans with the output statement when running the proc mixed...See example code below. any idea how to generate sample size n by group with the lsmeans ods output? I can then run the sgplot...I put in bold the code for the sample size with the sgplot...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating LSMeans proc mixed...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output LSMeans=means1;&lt;BR /&gt;proc mixed data=data NOCLPRINT;&lt;BR /&gt;class ID ratio&amp;nbsp;yeareye;&lt;BR /&gt;model score&amp;nbsp;= ratio year ratio*year;&lt;BR /&gt;repeated year/ subject=id type=cs;&lt;BR /&gt;lsmeans ratio*year;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the sgplot:&lt;/P&gt;&lt;P&gt;proc sgplot data=means1;&lt;BR /&gt;series x=year y=estimate/ group=ratio;&lt;BR /&gt;&lt;STRONG&gt;xaxistable n/ class=ratio location=outside colorgroup=ratio valueattrs=(weight=bold &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;size=10) labelattrs=(weight=bold size=10) title='Sample size at each visit' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;titleattrs=(weight=bold size=10);&lt;/STRONG&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401156#M13705</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-10-04T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting values on a gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401171#M13706</link>
      <description>&lt;P&gt;I was actually able to solve it by generating the sample size using proc means and then merging with the lsmeans generated from proc mixed and using sgplot...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if there is any way sample sizes at each time point can be generated using proc mixed, I would appreciate knowing that for you future reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 22:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/getting-values-on-a-gplot/m-p/401171#M13706</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-10-04T22:22:21Z</dc:date>
    </item>
  </channel>
</rss>

