<?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: Plotting fourth variable on plot using point label statement in proc gplot - issue with labels and connecting lines in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-fourth-variable-on-plot-using-point-label-statement-in/m-p/103982#M3875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several different ways to arrange/organize your data, and different ways to plot it with gplot.&lt;/P&gt;&lt;P&gt;You might need to take a slightly different approach, depending on exactly what you're wanting to plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, if you are getting lines connecting things in your plot that you don't want connected, you can insert some sas 'missing values' into the data, and then use gplot's "skipmiss" option to have it put a gap in the line (not connect the points) where it hits a missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the following (untested pseudo-code) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo; set foo;&lt;/P&gt;&lt;P&gt;by year;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;if last.year then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y_value=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 14:47:44 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2012-12-19T14:47:44Z</dc:date>
    <item>
      <title>Plotting fourth variable on plot using point label statement in proc gplot - issue with labels and connecting lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-fourth-variable-on-plot-using-point-label-statement-in/m-p/103981#M3874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to plot a fourth variable on a plot using the pointlabel statement. It works essentially, but I cannot figure out why the lines are interconnecting between the different values of my fourth variable and why there are multiple labels around a single data point. Below is the code I used to generate the attached graph. I appreciate any help or insight anyone can provide - Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=repeatedall;&lt;/P&gt;&lt;P&gt;by year;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;goptions reset=all;&lt;/P&gt;&lt;P&gt;symbol v=dot i=join pointlabel= ('#cen_reg') ;&lt;/P&gt;&lt;P&gt;axis1 label = ('predicted') order = (0 to 1 by 0.1);&lt;/P&gt;&lt;P&gt;legend1 position=(inside top right) down=3 label=none;&lt;/P&gt;&lt;P&gt;proc gplot data=repeatedall;&lt;/P&gt;&lt;P&gt;title 'NIS All Predicted';&lt;/P&gt;&lt;P&gt;plot predicted*year=recom_value/ vaxis=axis1; * haxis=axis2 legend=legend1;&lt;/P&gt;&lt;P&gt;format recom_value recf.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;ut th&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 14:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-fourth-variable-on-plot-using-point-label-statement-in/m-p/103981#M3874</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-12-19T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting fourth variable on plot using point label statement in proc gplot - issue with labels and connecting lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-fourth-variable-on-plot-using-point-label-statement-in/m-p/103982#M3875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several different ways to arrange/organize your data, and different ways to plot it with gplot.&lt;/P&gt;&lt;P&gt;You might need to take a slightly different approach, depending on exactly what you're wanting to plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, if you are getting lines connecting things in your plot that you don't want connected, you can insert some sas 'missing values' into the data, and then use gplot's "skipmiss" option to have it put a gap in the line (not connect the points) where it hits a missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the following (untested pseudo-code) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo; set foo;&lt;/P&gt;&lt;P&gt;by year;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;if last.year then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y_value=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 14:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-fourth-variable-on-plot-using-point-label-statement-in/m-p/103982#M3875</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-12-19T14:47:44Z</dc:date>
    </item>
  </channel>
</rss>

