<?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 Proc sgpanel: specifying colaxis tick values messes up curve [includes images] in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-sgpanel-specifying-colaxis-tick-values-messes-up-curve/m-p/420616#M20018</link>
    <description>&lt;P&gt;I'm&amp;nbsp;working in SAS 9.4 on panel graphs&amp;nbsp;which look as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="curve.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17171iB231C248D82B224D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="curve.png" alt="curve.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=mydata; 
   format period perf. group grpf. time best8.;
   styleattrs datacontrastcolors=(darkblue bigb liyg vpap gold); 
   panelby group / spacing=5 novarname columns=2;
   vline time / response=myoutcome group=period lineattrs=(thickness=2 pattern=solid);
   colaxis display=(novalues) values=(0 to 24) max=24 label='Time'; 
   rowaxis values=(0 to 100 by 20) grid label='% with outcome';
   keylegend / title='Grouping var';
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Whenever I try to specify which values should be shown on the x-axis, using&amp;nbsp;*any* of these options:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;colaxis values=(0 to 24 by 3); &lt;BR /&gt;&lt;BR /&gt;colaxis values=(0 3 6 9 12 15 18 21 24); &lt;BR /&gt;&lt;BR /&gt;colaxis refticks=(values) values=(0 3 6 9 12 15 18 21 24); &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the graph gets messed up - it's no longer the curve it should show, esp. for low values, and it seems to shorten one of the curves (yellow):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pointy.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17172iAC1334C914EA4C27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pointy.png" alt="pointy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, there seems to be something off with the x-axis, when I specify for example &lt;EM&gt;colaxis values=(0 3 6 24)&lt;/EM&gt;, the spacing is even between all these values, although it obviously shouldn't be. I thought&amp;nbsp;it may be because of inconsistent time intervals in&amp;nbsp;my input dataset (0.1, 0.2, 0.3...&amp;nbsp;until 1.0, and then 2.0, 3.0..., with format 8.3 in dataset), but when I edited the set to include only values spaced by 1 (0.0, 1.0, 2.0...), I had the same problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I specify what I want shown on&amp;nbsp;the x-axis (0 to 24 by 3) &amp;amp; keep the actual curve as it should be? Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 21:55:12 GMT</pubDate>
    <dc:creator>frewq</dc:creator>
    <dc:date>2017-12-12T21:55:12Z</dc:date>
    <item>
      <title>Proc sgpanel: specifying colaxis tick values messes up curve [includes images]</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-sgpanel-specifying-colaxis-tick-values-messes-up-curve/m-p/420616#M20018</link>
      <description>&lt;P&gt;I'm&amp;nbsp;working in SAS 9.4 on panel graphs&amp;nbsp;which look as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="curve.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17171iB231C248D82B224D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="curve.png" alt="curve.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=mydata; 
   format period perf. group grpf. time best8.;
   styleattrs datacontrastcolors=(darkblue bigb liyg vpap gold); 
   panelby group / spacing=5 novarname columns=2;
   vline time / response=myoutcome group=period lineattrs=(thickness=2 pattern=solid);
   colaxis display=(novalues) values=(0 to 24) max=24 label='Time'; 
   rowaxis values=(0 to 100 by 20) grid label='% with outcome';
   keylegend / title='Grouping var';
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Whenever I try to specify which values should be shown on the x-axis, using&amp;nbsp;*any* of these options:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;colaxis values=(0 to 24 by 3); &lt;BR /&gt;&lt;BR /&gt;colaxis values=(0 3 6 9 12 15 18 21 24); &lt;BR /&gt;&lt;BR /&gt;colaxis refticks=(values) values=(0 3 6 9 12 15 18 21 24); &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the graph gets messed up - it's no longer the curve it should show, esp. for low values, and it seems to shorten one of the curves (yellow):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pointy.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17172iAC1334C914EA4C27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pointy.png" alt="pointy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, there seems to be something off with the x-axis, when I specify for example &lt;EM&gt;colaxis values=(0 3 6 24)&lt;/EM&gt;, the spacing is even between all these values, although it obviously shouldn't be. I thought&amp;nbsp;it may be because of inconsistent time intervals in&amp;nbsp;my input dataset (0.1, 0.2, 0.3...&amp;nbsp;until 1.0, and then 2.0, 3.0..., with format 8.3 in dataset), but when I edited the set to include only values spaced by 1 (0.0, 1.0, 2.0...), I had the same problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I specify what I want shown on&amp;nbsp;the x-axis (0 to 24 by 3) &amp;amp; keep the actual curve as it should be? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-sgpanel-specifying-colaxis-tick-values-messes-up-curve/m-p/420616#M20018</guid>
      <dc:creator>frewq</dc:creator>
      <dc:date>2017-12-12T21:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgpanel: specifying colaxis tick values messes up curve [includes images]</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-sgpanel-specifying-colaxis-tick-values-messes-up-curve/m-p/420898#M20022</link>
      <description>&lt;P&gt;Your comment about time makes me think that you might benefit by changing that variable into an actual SAS time, or possibly datetime if your values cross midnight or exceed 24 hours. Values lists understands some time interval elements such as 'second',&amp;nbsp;'hour' or 'minute' if the values are actually times. OR you could could specify a BY element that is number of seconds and format the displayed values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might help to show some data that will duplicate the problem for one of the group/ period combinations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &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; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-sgpanel-specifying-colaxis-tick-values-messes-up-curve/m-p/420898#M20022</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-13T17:13:41Z</dc:date>
    </item>
  </channel>
</rss>

