<?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 avoid plots overlaying and make a visible differentiation in plots in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314758#M21231</link>
    <description>&lt;P&gt;Hi KSharp, Thanks for your suggestion. I already tried it. Unfortunately, this way the outcome is in 4 panels. But what I want that all the 4 plots in one panel, as in my question above, but where Date=6Jul16, the plot should be shifted up on Y-axis by 6000 in each row.&lt;BR /&gt;So where:&lt;BR /&gt;Date=6Jul16 and MeaNo=1,&lt;BR /&gt;the new_Y= -40075+6000 = -34075&lt;BR /&gt;Date=6Jul16 and MeaNo=2,&lt;BR /&gt;the new_Y= -39875+6000 = -33875&lt;BR /&gt;and so forth.&lt;BR /&gt;I am thinking, this way we can see some shift in the plot and difference between two dates (29Jun and 6Jul).&lt;/P&gt;&lt;P&gt;And I tried this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
 create table mydata as 
 SELECT *,
 CASE
 WHEN Date="06JUL2016"d THEN (y+6000)
 ELSE y
 END AS Y_Plus_6K
 FROM mydata;
QUIT;

proc sgplot  data=mydata1;
series x=x y=Y_Plus_6K / group=Date transparency=0.6 LINEATTRS=(thickness=2) break;
yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this looks horrible. May be you could suggest me something better.&lt;BR /&gt;Thanks once again.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 08:17:29 GMT</pubDate>
    <dc:creator>imanojkumar1</dc:creator>
    <dc:date>2016-11-28T08:17:29Z</dc:date>
    <item>
      <title>How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314309#M21215</link>
      <description>&lt;P&gt;Using the attached data, I am plotting the X, Y values w.r.t. Dates. I am using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot  data=mydata;
series x=x y=y / group=Date break;
yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this is what plot looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6016i59E6FD10E0BD00BF/image-size/original?v=v2&amp;amp;px=-1" alt="plot.png" title="plot.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now question is...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the above resulting plot I can not identify the 4 plots clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I want to do this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Between plots, can we add some common no. say something like 6 so that there occurs some visible difference.&lt;/LI&gt;&lt;LI&gt;Thick lines with different colors (so that visually we can identify each)&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314309#M21215</guid>
      <dc:creator>imanojkumar1</dc:creator>
      <dc:date>2016-11-25T14:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314320#M21216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post test data as a datastep in the body of the post, attached xlsx files are a security risk. &amp;nbsp;With regards to your questions:&lt;/P&gt;
&lt;P&gt;1)&lt;/P&gt;
&lt;P&gt;What you talk about is jittering. &amp;nbsp;Here are some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/07/10/make-better-graphs-with-sas-9-4/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/07/10/make-better-graphs-with-sas-9-4/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/07/05/jittering-to-prevent-overplotting-in-statistical-graphics.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2011/07/05/jittering-to-prevent-overplotting-in-statistical-graphics.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You could also manipulate your data, i.e. each group gets +6 added to the result, more than the previous group. &amp;nbsp;Do this in a datastep before the sgplot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To set the size of the lines, you use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;lineattrs=(thickness=X)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Where x is the width.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 15:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314320#M21216</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314322#M21217</link>
      <description>Hi RW9,&lt;BR /&gt;Thanks for raising the concerns. I can assure this file is virus checked before uploading.&lt;BR /&gt;Also, this data has some 5000 odds rows, so data step might not be a good option on this forum. And that's the reason why I had to upload the xlsx file (which is exported from SAS EG I work on).</description>
      <pubDate>Fri, 25 Nov 2016 15:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314322#M21217</guid>
      <dc:creator>imanojkumar1</dc:creator>
      <dc:date>2016-11-25T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314323#M21218</link>
      <description>&lt;P&gt;Its not concerns, its statutory company policy, and security sense for anyone. &amp;nbsp;If you need to post test data, do so as a datastep (to show structure) and only a few of the obsevations necessary to illustrate the problem. &amp;nbsp;You can do this by following this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 15:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314323#M21218</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314427#M21227</link>
      <description>&lt;PRE&gt;

proc sgpanel  data=mydata;
panelby date;
series x=x y=y /  break;
run;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Nov 2016 06:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314427#M21227</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-26T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid plots overlaying and make a visible differentiation in plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314758#M21231</link>
      <description>&lt;P&gt;Hi KSharp, Thanks for your suggestion. I already tried it. Unfortunately, this way the outcome is in 4 panels. But what I want that all the 4 plots in one panel, as in my question above, but where Date=6Jul16, the plot should be shifted up on Y-axis by 6000 in each row.&lt;BR /&gt;So where:&lt;BR /&gt;Date=6Jul16 and MeaNo=1,&lt;BR /&gt;the new_Y= -40075+6000 = -34075&lt;BR /&gt;Date=6Jul16 and MeaNo=2,&lt;BR /&gt;the new_Y= -39875+6000 = -33875&lt;BR /&gt;and so forth.&lt;BR /&gt;I am thinking, this way we can see some shift in the plot and difference between two dates (29Jun and 6Jul).&lt;/P&gt;&lt;P&gt;And I tried this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
 create table mydata as 
 SELECT *,
 CASE
 WHEN Date="06JUL2016"d THEN (y+6000)
 ELSE y
 END AS Y_Plus_6K
 FROM mydata;
QUIT;

proc sgplot  data=mydata1;
series x=x y=Y_Plus_6K / group=Date transparency=0.6 LINEATTRS=(thickness=2) break;
yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this looks horrible. May be you could suggest me something better.&lt;BR /&gt;Thanks once again.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 08:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-avoid-plots-overlaying-and-make-a-visible-differentiation/m-p/314758#M21231</guid>
      <dc:creator>imanojkumar1</dc:creator>
      <dc:date>2016-11-28T08:17:29Z</dc:date>
    </item>
  </channel>
</rss>

