<?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 How do I modify legend label intervals s in PROC SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520343#M141073</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am struggling with SGPANEL. I need to change the intervals on the X axis but not the spacing between points. The data points are divided into steps of 5 on a 1440 data points axis. Are there any code that allows for spacing the x axis by say 240? If I use the “colaxis” option, then the space between the data points are also being divided into 240 (as in the example below), which is unwanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods rtf file='exp.rtf' startpage=no image_dpi=&lt;STRONG&gt;300&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods graphics / reset=all outputfmt=png height=&lt;STRONG&gt;3&lt;/STRONG&gt;in width=&lt;STRONG&gt;4&lt;/STRONG&gt;in;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgpanel&lt;/STRONG&gt; data=SGPLOT_1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where variabel in ("pred" "smooth");&lt;/P&gt;&lt;P&gt;&amp;nbsp; title "Daily Variations";&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelby Day / spacing=&lt;STRONG&gt;5&lt;/STRONG&gt; novarname rows=&lt;STRONG&gt;3&lt;/STRONG&gt;&amp;nbsp; columns=&lt;STRONG&gt;4&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *ROWAXIS values=(9 to 15 by 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;* colaxis values=(0 to 1440 by 240);&lt;/P&gt;&lt;P&gt;&amp;nbsp; vline min / response=DO group=variabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods preferences;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 13:03:59 GMT</pubDate>
    <dc:creator>Bruger</dc:creator>
    <dc:date>2018-12-11T13:03:59Z</dc:date>
    <item>
      <title>How do I modify legend label intervals s in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520343#M141073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am struggling with SGPANEL. I need to change the intervals on the X axis but not the spacing between points. The data points are divided into steps of 5 on a 1440 data points axis. Are there any code that allows for spacing the x axis by say 240? If I use the “colaxis” option, then the space between the data points are also being divided into 240 (as in the example below), which is unwanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods rtf file='exp.rtf' startpage=no image_dpi=&lt;STRONG&gt;300&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods graphics / reset=all outputfmt=png height=&lt;STRONG&gt;3&lt;/STRONG&gt;in width=&lt;STRONG&gt;4&lt;/STRONG&gt;in;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgpanel&lt;/STRONG&gt; data=SGPLOT_1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where variabel in ("pred" "smooth");&lt;/P&gt;&lt;P&gt;&amp;nbsp; title "Daily Variations";&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelby Day / spacing=&lt;STRONG&gt;5&lt;/STRONG&gt; novarname rows=&lt;STRONG&gt;3&lt;/STRONG&gt;&amp;nbsp; columns=&lt;STRONG&gt;4&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *ROWAXIS values=(9 to 15 by 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;* colaxis values=(0 to 1440 by 240);&lt;/P&gt;&lt;P&gt;&amp;nbsp; vline min / response=DO group=variabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods preferences;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 13:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520343#M141073</guid>
      <dc:creator>Bruger</dc:creator>
      <dc:date>2018-12-11T13:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify legend label intervals s in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520350#M141077</link>
      <description>&lt;P&gt;Use a format on the axis values, so setup a format which has ranges of values to code something like:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value...;
    1-10="First"
    11-20="Second";
run;&lt;/PRE&gt;
&lt;P&gt;Then apply the format to your data, and set axis ticks as you do now, should display all the ticks and label only using format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing to test this on of course...&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 13:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520350#M141077</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-11T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify legend label intervals s in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520726#M141240</link>
      <description>&lt;P&gt;HI&amp;nbsp;RW9,&lt;/P&gt;&lt;P&gt;I am not quite sure where you&amp;nbsp;are going! Maybe you could modify&amp;nbsp;the small example below?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data SGPLOT_1;&lt;BR /&gt;input day DO m h min variabel $50.;&lt;BR /&gt;cards;&lt;BR /&gt;261 4.159546709 10 15 910 smooth&lt;BR /&gt;261 8.701541887 15 15 915 smooth&lt;BR /&gt;261 9.239163185 20 15 920 smooth&lt;BR /&gt;261 9.410279212 25 15 925 smooth&lt;BR /&gt;261 9.455243278 30 15 930 smooth&lt;BR /&gt;261 9.479840868 35 15 935 smooth&lt;BR /&gt;261 9.489327791 40 15 940 smooth&lt;BR /&gt;261 9.522090503 45 15 945 smooth&lt;BR /&gt;261 9.53150182 50 15 950 smooth&lt;BR /&gt;261 9.519335529 55 15 955 smooth&lt;BR /&gt;261 9.524832008 0 16 960 smooth&lt;BR /&gt;261 9.547050808 5 16 965 smooth&lt;BR /&gt;265 9.894329574 20 5 320 pred&lt;BR /&gt;265 9.894329574 25 5 325 pred&lt;BR /&gt;265 9.894329574 30 5 330 pred&lt;BR /&gt;265 9.894329574 35 5 335 pred&lt;BR /&gt;265 9.894329574 40 5 340 pred&lt;BR /&gt;265 9.894329574 45 5 345 pred&lt;BR /&gt;265 9.894329574 50 5 350 pred&lt;BR /&gt;265 9.894329574 55 5 355 pred&lt;BR /&gt;265 9.89433014 0 6 360 pred&lt;BR /&gt;265 9.89433014 5 6 365 pred&lt;BR /&gt;265 9.89433014 10 6 370 pred&lt;BR /&gt;265 9.89433014 15 6 375 pred&lt;BR /&gt;265 9.89433014 20 6 380 pred&lt;BR /&gt;265 9.89433014 25 6 385 pred&lt;BR /&gt;265 9.89433014 30 6 390 pred&lt;BR /&gt;265 9.89433014 35 6 395 pred&lt;BR /&gt;265 9.89433014 40 6 400 pred&lt;BR /&gt;265 9.89433014 45 6 405 pred&lt;BR /&gt;265 9.89433014 50 6 410 pred&lt;BR /&gt;265 9.89433014 55 6 415 pred&lt;BR /&gt;265 9.894628018 0 7 420 pred&lt;BR /&gt;265 9.894628018 5 7 425 pred&lt;BR /&gt;265 9.894628018 10 7 430 pred&lt;BR /&gt;265 9.894628018 15 7 435 pred&lt;BR /&gt;265 9.894628018 20 7 440 pred&lt;BR /&gt;265 9.894628018 25 7 445 pred&lt;BR /&gt;265 9.894628018 30 7 450 pred&lt;BR /&gt;265 9.894628018 35 7 455 pred&lt;BR /&gt;265 9.894628018 40 7 460 pred&lt;BR /&gt;265 9.894628018 45 7 465 pred&lt;BR /&gt;265 9.894628018 50 7 470 pred&lt;BR /&gt;265 9.894628018 55 7 475 pred&lt;BR /&gt;265 9.895405669 0 8 480 pred&lt;BR /&gt;265 9.895405669 5 8 485 pred&lt;BR /&gt;265 9.895405669 10 8 490 pred&lt;BR /&gt;265 9.895405669 15 8 495 pred&lt;BR /&gt;265 9.895405669 20 8 500 pred&lt;BR /&gt;265 9.895405669 25 8 505 pred&lt;BR /&gt;265 9.895405669 30 8 510 pred&lt;BR /&gt;265 9.895405669 35 8 515 pred&lt;BR /&gt;265 9.895405669 40 8 520 pred&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgpanel data=SGPLOT_1;&lt;BR /&gt;where variabel in ("pred" "smooth");&lt;BR /&gt;title "Daily Variations";&lt;BR /&gt;panelby Day / spacing=5 novarname rows=2 columns=1;&lt;BR /&gt;vline min / response=DO group=variabel;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 08:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520726#M141240</guid>
      <dc:creator>Bruger</dc:creator>
      <dc:date>2018-12-12T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify legend label intervals s in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520730#M141241</link>
      <description>&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/10/10/can-values-on-an-axis-first-decrease-and-then-increase/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/10/10/can-values-on-an-axis-first-decrease-and-then-increase/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Use the xaxis/yaxis to set values, then apply a format to the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Has thousands of graph types and associated code, its the go to for graphing.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 09:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-modify-legend-label-intervals-s-in-PROC-SGPANEL/m-p/520730#M141241</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-12T09:20:21Z</dc:date>
    </item>
  </channel>
</rss>

