<?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 show data points in longitudinal data plots? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615000#M19276</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164846"&gt;@jeniffer_jacob&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to show the data points for the longitudinal data plots.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=test_series;&lt;BR /&gt;series y=glucose x=time /group=subject;&lt;BR /&gt;xaxis values=(0, 6, 12, 24);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only generate the following plots (first plot) using the above code.&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;symbol interpol=join&amp;nbsp;&amp;nbsp; value=dot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it is not working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second plot showed an example of data points. I only need black dots for my plots.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The SYMBOL command only works on old style graphics procedures, such as PROC GPLOT. It does not work in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add dots for the markers on the SGPLOT by adding the MARKERS option to the SCATTER statement, along with any or all of the options MARKERATTRS= MARKERFILLATTRS= MARKEROUTLINEATTRS= as described in the documentation at&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1jkqnmk6y6ms9n1b2vvubyzqd4a.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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2020 16:21:18 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-03T16:21:18Z</dc:date>
    <item>
      <title>How to show data points in longitudinal data plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/614998#M19275</link>
      <description>&lt;P&gt;I am trying to show the data points for the longitudinal data plots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test_series;&lt;BR /&gt;series y=glucose x=time /group=subject;&lt;BR /&gt;xaxis values=(0, 6, 12, 24);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only generate the following plots (first plot) using the above code.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol interpol=join&amp;nbsp;&amp;nbsp; value=dot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second plot showed an example of data points. I only need black dots for my plots.&amp;nbsp;&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="plots_no_dataPoints.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35125i88A2670FC58C972F/image-size/large?v=v2&amp;amp;px=999" role="button" title="plots_no_dataPoints.jpg" alt="plots_no_dataPoints.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example_plots_with_DataPoints.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35126iDCBD407B64D09D2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="example_plots_with_DataPoints.jpg" alt="example_plots_with_DataPoints.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/614998#M19275</guid>
      <dc:creator>jeniffer_jacob</dc:creator>
      <dc:date>2020-01-03T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data points in longitudinal data plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615000#M19276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164846"&gt;@jeniffer_jacob&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to show the data points for the longitudinal data plots.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=test_series;&lt;BR /&gt;series y=glucose x=time /group=subject;&lt;BR /&gt;xaxis values=(0, 6, 12, 24);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only generate the following plots (first plot) using the above code.&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;symbol interpol=join&amp;nbsp;&amp;nbsp; value=dot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it is not working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second plot showed an example of data points. I only need black dots for my plots.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The SYMBOL command only works on old style graphics procedures, such as PROC GPLOT. It does not work in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add dots for the markers on the SGPLOT by adding the MARKERS option to the SCATTER statement, along with any or all of the options MARKERATTRS= MARKERFILLATTRS= MARKEROUTLINEATTRS= as described in the documentation at&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1jkqnmk6y6ms9n1b2vvubyzqd4a.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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615000#M19276</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-03T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data points in longitudinal data plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615014#M19278</link>
      <description>&lt;P&gt;Thank you so much for your kind reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;markerattrs doesn't work with series statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test_series;&lt;BR /&gt;series y=glucose x=time /group=subject;&lt;BR /&gt;xaxis values=(0, 6, 12, 24);&lt;BR /&gt;markerattrs=(symbol=circlefilled size=25&lt;BR /&gt;color=black);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markerattrs does work with scatter statement. But how can I connect the data points if I use scatter statement with&amp;nbsp;markerattrs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test_series;&lt;BR /&gt;scatter x=time y=glucose / filledoutlinedmarkers&lt;BR /&gt;markeroutlineattrs=(color=red thickness=2)&lt;BR /&gt;markerattrs=(symbol=circlefilled size=25&lt;BR /&gt;color=black);&lt;BR /&gt;run;&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-inline" image-alt="scatter_glucose.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35127iC4CE6B9937F7435C/image-size/large?v=v2&amp;amp;px=999" role="button" title="scatter_glucose.png" alt="scatter_glucose.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615014#M19278</guid>
      <dc:creator>jeniffer_jacob</dc:creator>
      <dc:date>2020-01-03T16:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data points in longitudinal data plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615019#M19279</link>
      <description>&lt;P&gt;I figured it out!&amp;nbsp;Markerattrs needs markers in front of it for series statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-data-points-in-longitudinal-data-plots/m-p/615019#M19279</guid>
      <dc:creator>jeniffer_jacob</dc:creator>
      <dc:date>2020-01-03T17:33:16Z</dc:date>
    </item>
  </channel>
</rss>

