<?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 Add the data value on spaghetti plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911054#M24282</link>
    <description>&lt;P&gt;I am working on spaghetti plot using proc sgplot, just wonder if there is a way to add the data value on each data point.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 01:08:10 GMT</pubDate>
    <dc:creator>jojo</dc:creator>
    <dc:date>2024-01-10T01:08:10Z</dc:date>
    <item>
      <title>Add the data value on spaghetti plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911054#M24282</link>
      <description>&lt;P&gt;I am working on spaghetti plot using proc sgplot, just wonder if there is a way to add the data value on each data point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 01:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911054#M24282</guid>
      <dc:creator>jojo</dc:creator>
      <dc:date>2024-01-10T01:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add the data value on spaghetti plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911060#M24283</link>
      <description>&lt;P&gt;Can you please show a small example of your data, and your code to produce the spaghetti plot without the labels?&amp;nbsp; And then describe what data value labels you want to add.&amp;nbsp; Normally a spaghetti plot will be a lot of overlapping lines (like spaghetti), so labeling values wouldn't make sense.&amp;nbsp; Do you mean you want to label each strand of the spaghetti?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This blog post by Rick Wicklin might be helpful to you.&amp;nbsp; It shows a spaghetti plot, and discusses how spaghetti plots differ from line plots.&amp;nbsp; &lt;A href="https://blogs.sas.com/content/iml/2016/06/02/create-spaghetti-plots-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/02/create-spaghetti-plots-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 02:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911060#M24283</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-01-10T02:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add the data value on spaghetti plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911125#M24284</link>
      <description>&lt;P&gt;You can add a label at each data point on a spaghetti plot, with the DATALABEL option after the / on the SERIES statement.&amp;nbsp; Below is sample code that illustrates the syntax:&lt;/P&gt;
&lt;P&gt;data one;&lt;BR /&gt;input trt_group time subject results;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 100 20&lt;BR /&gt;1 4 100 30&lt;BR /&gt;1 6 100 35&lt;BR /&gt;1 8 100 50&lt;BR /&gt;1 2 200 40&lt;BR /&gt;1 4 200 25&lt;BR /&gt;1 6 200 40&lt;BR /&gt;1 8 200 30&lt;BR /&gt;1 2 300 25&lt;BR /&gt;1 4 300 40&lt;BR /&gt;1 6 300 45&lt;BR /&gt;1 8 300 55&lt;BR /&gt;2 2 400 15&lt;BR /&gt;2 4 400 35&lt;BR /&gt;2 6 400 50&lt;BR /&gt;2 8 400 45&lt;BR /&gt;2 2 500 35&lt;BR /&gt;2 4 500 35&lt;BR /&gt;2 6 500 20&lt;BR /&gt;2 8 500 35&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;ODS html;&lt;BR /&gt;proc sgplot data=one;&lt;BR /&gt;title 'Study Results by Treatment Group';&lt;BR /&gt;series x=time y=results / group=subject grouplc=trt_group name='grouping' datalabel=results;&lt;BR /&gt;keylegend 'grouping' / type=linecolor;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 13:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911125#M24284</guid>
      <dc:creator>LeliaM</dc:creator>
      <dc:date>2024-01-10T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add the data value on spaghetti plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911159#M24285</link>
      <description>&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-the-data-value-on-spaghetti-plot/m-p/911159#M24285</guid>
      <dc:creator>jojo</dc:creator>
      <dc:date>2024-01-10T15:57:04Z</dc:date>
    </item>
  </channel>
</rss>

