<?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: Label data points and plot multiple series in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70524#M2484</link>
    <description>But what if I already have he data in a sas dataset and there are multiple sub categories. Is an 'if then' statement in a separate data step the only way to go...in which caseI wil have to write multiple if then statements..and where is the label option in your code...&lt;BR /&gt;
&lt;BR /&gt;
thanks a lot...</description>
    <pubDate>Tue, 07 Sep 2010 17:31:39 GMT</pubDate>
    <dc:creator>DB_ECON</dc:creator>
    <dc:date>2010-09-07T17:31:39Z</dc:date>
    <item>
      <title>Label data points and plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70522#M2482</link>
      <description>Data : 4 variables....x, y, z1 and z2. &lt;BR /&gt;
Objective plot x against y where z2=1 and plot x against y for z2=2 on the same graph. Also use z1 to label the data points on each plot. &lt;BR /&gt;
x   y   z1   z2 &lt;BR /&gt;
1   2   a     1&lt;BR /&gt;
2   4   b     1&lt;BR /&gt;
3   5   c     1&lt;BR /&gt;
4   9   a     2&lt;BR /&gt;
5   4   b     2&lt;BR /&gt;
6   8   c     2</description>
      <pubDate>Tue, 07 Sep 2010 17:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70522#M2482</guid>
      <dc:creator>DB_ECON</dc:creator>
      <dc:date>2010-09-07T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Label data points and plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70523#M2483</link>
      <description>Perhaps something like this?...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data foo;&lt;BR /&gt;
input x   y   z1   z2;&lt;BR /&gt;
if (z2 eq 1) then line1=y;&lt;BR /&gt;
if (z2 eq 2) then line2=y;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1   2   a     1&lt;BR /&gt;
2   4   b     1&lt;BR /&gt;
3   5   c     1&lt;BR /&gt;
4   9   a     2&lt;BR /&gt;
5   4   b     2&lt;BR /&gt;
6   8   c     2&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
symbol1 v=dot i=join c=red;&lt;BR /&gt;
symbol2 v=dot i=join c=blue;&lt;BR /&gt;
proc gplot data=foo;&lt;BR /&gt;
plot line1*x line2*x / overlay;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 07 Sep 2010 17:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70523#M2483</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-09-07T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Label data points and plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70524#M2484</link>
      <description>But what if I already have he data in a sas dataset and there are multiple sub categories. Is an 'if then' statement in a separate data step the only way to go...in which caseI wil have to write multiple if then statements..and where is the label option in your code...&lt;BR /&gt;
&lt;BR /&gt;
thanks a lot...</description>
      <pubDate>Tue, 07 Sep 2010 17:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70524#M2484</guid>
      <dc:creator>DB_ECON</dc:creator>
      <dc:date>2010-09-07T17:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Label data points and plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70525#M2485</link>
      <description>If you are using SAS 9.2, this is straightforward using PROC SGPLOT:&lt;BR /&gt;
&lt;BR /&gt;
data somedata;&lt;BR /&gt;
input x y z1 $ z2;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 2 a 1&lt;BR /&gt;
2 4 b 1&lt;BR /&gt;
3 5 c 1&lt;BR /&gt;
4 9 a 2&lt;BR /&gt;
5 4 b 2&lt;BR /&gt;
6 8 c 2&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=somedata;&lt;BR /&gt;
series x=x y=y / group=z2 datalabel=z1;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 07 Sep 2010 18:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70525#M2485</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-09-07T18:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Label data points and plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70526#M2486</link>
      <description>Or something like this?...&lt;BR /&gt;
&lt;BR /&gt;
data somedata;&lt;BR /&gt;
input x y z1 $ z2;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 2 a 1&lt;BR /&gt;
2 4 b 1&lt;BR /&gt;
3 5 c 1&lt;BR /&gt;
4 9 a 2&lt;BR /&gt;
5 4 b 2&lt;BR /&gt;
6 8 c 2&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 v=dot i=join c=red;&lt;BR /&gt;
symbol2 v=dot i=join c=blue;&lt;BR /&gt;
proc gplot data=somedata;&lt;BR /&gt;
plot y*x=z2;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 07 Sep 2010 18:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-data-points-and-plot-multiple-series/m-p/70526#M2486</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-09-07T18:38:24Z</dc:date>
    </item>
  </channel>
</rss>

