<?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: Plot 2 different range values on X axis, in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41391#M1331</link>
    <description>If you have SAS 9.2, you can use ODS Graphics to do it. Basically, the two range are put into two cells of a lattice. the axis values are naturally placed in their location in linear space. I'm not sure of the appearance details you want, so just try this example and ask me any questions you have about it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data smalldata;&lt;BR /&gt;
input x1 y1;&lt;BR /&gt;
cards;&lt;BR /&gt;
2    200&lt;BR /&gt;
4    400&lt;BR /&gt;
6.5  650&lt;BR /&gt;
9    900&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data bigdata;&lt;BR /&gt;
input x2 y2;&lt;BR /&gt;
cards;&lt;BR /&gt;
200 200&lt;BR /&gt;
250 250&lt;BR /&gt;
400 400&lt;BR /&gt;
600 600&lt;BR /&gt;
690 690&lt;BR /&gt;
710 710&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data realdata;&lt;BR /&gt;
merge smalldata bigdata;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph broken;&lt;BR /&gt;
dynamic list1 list2;&lt;BR /&gt;
begingraph;&lt;BR /&gt;
layout lattice / columns=2 columngutter=3;&lt;BR /&gt;
   layout overlay / walldisplay=(fill) xaxisopts=(linearopts=(tickvaluelist=list1));&lt;BR /&gt;
      scatterplot x=x1 y=y1;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
   layout overlay / walldisplay=(fill) yaxisopts=(display=none)&lt;BR /&gt;
                          xaxisopts=(linearopts=(tickvaluelist=list2));&lt;BR /&gt;
      scatterplot x=x2 y=y2;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=realdata template=broken;&lt;BR /&gt;
dynamic list1="2 4 6.5 9" list2="200 250 400 600 690 710";&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 28 Jun 2010 19:56:50 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-06-28T19:56:50Z</dc:date>
    <item>
      <title>Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41390#M1330</link>
      <description>Hi-,&lt;BR /&gt;
I am trying to create a PK graph. The time values on X axis are 2,4,6.5,9,200,250,400,600,690,710 weeks.&lt;BR /&gt;
&lt;BR /&gt;
I would like to present 2 to 9 weeks first on the x-axis then break the X-axis and present remaining 200 to 710 weeks on X-axis. Otherwise, 2 to 9 weeks were displayed so close they almost appear as one data point on X-axis. For this reason i would like to present them as 2 different ranges (2-9 and 200 and 710). &lt;BR /&gt;
&lt;BR /&gt;
Please note that i want to preserve the distance between 2 data points on x-axis meaning the distance between data point 2 and 4 should be less than distance between .4 and 6.5, similarly distance between 600 and 690 should be more than distance between 690 and 710. I do not want to present these with same distance between them,...&lt;BR /&gt;
&lt;BR /&gt;
Please let me know if you know how to do it,...&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 28 Jun 2010 06:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41390#M1330</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-28T06:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41391#M1331</link>
      <description>If you have SAS 9.2, you can use ODS Graphics to do it. Basically, the two range are put into two cells of a lattice. the axis values are naturally placed in their location in linear space. I'm not sure of the appearance details you want, so just try this example and ask me any questions you have about it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data smalldata;&lt;BR /&gt;
input x1 y1;&lt;BR /&gt;
cards;&lt;BR /&gt;
2    200&lt;BR /&gt;
4    400&lt;BR /&gt;
6.5  650&lt;BR /&gt;
9    900&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data bigdata;&lt;BR /&gt;
input x2 y2;&lt;BR /&gt;
cards;&lt;BR /&gt;
200 200&lt;BR /&gt;
250 250&lt;BR /&gt;
400 400&lt;BR /&gt;
600 600&lt;BR /&gt;
690 690&lt;BR /&gt;
710 710&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data realdata;&lt;BR /&gt;
merge smalldata bigdata;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph broken;&lt;BR /&gt;
dynamic list1 list2;&lt;BR /&gt;
begingraph;&lt;BR /&gt;
layout lattice / columns=2 columngutter=3;&lt;BR /&gt;
   layout overlay / walldisplay=(fill) xaxisopts=(linearopts=(tickvaluelist=list1));&lt;BR /&gt;
      scatterplot x=x1 y=y1;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
   layout overlay / walldisplay=(fill) yaxisopts=(display=none)&lt;BR /&gt;
                          xaxisopts=(linearopts=(tickvaluelist=list2));&lt;BR /&gt;
      scatterplot x=x2 y=y2;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=realdata template=broken;&lt;BR /&gt;
dynamic list1="2 4 6.5 9" list2="200 250 400 600 690 710";&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 28 Jun 2010 19:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41391#M1331</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-06-28T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41392#M1332</link>
      <description>Hi Dan,&lt;BR /&gt;
Thank you very much for you reply.&lt;BR /&gt;
Unfortunately I am using sas 9.1 and I did not find any solution for this in 9.1.&lt;BR /&gt;
&lt;BR /&gt;
Please let me know if you think otherwise,..&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 29 Jun 2010 02:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41392#M1332</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-29T02:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41393#M1333</link>
      <description>perhaps you could use "dummy"  values for the axis to force the distances and then use the tick mark options to label the tick marks with the desired values ...</description>
      <pubDate>Tue, 29 Jun 2010 14:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41393#M1333</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-06-29T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41394#M1334</link>
      <description>Hi Bill,&lt;BR /&gt;
Thanks for your reply.&lt;BR /&gt;
Yes, the dummy coding works in some cases. But statistician is not ok with this approach,.. &lt;BR /&gt;
&lt;BR /&gt;
Thanks,...</description>
      <pubDate>Wed, 30 Jun 2010 16:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41394#M1334</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-30T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41395#M1335</link>
      <description>There is a graph example on support.sas.com "Sample 24909: Create a 'break' on the vertical axis of a plot" that might be helpful to you.</description>
      <pubDate>Wed, 30 Jun 2010 17:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41395#M1335</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-06-30T17:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different range values on X axis,</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41396#M1336</link>
      <description>HI RICK M,&lt;BR /&gt;
Thanks for the info. It is really helpful, and this is what I am looking for,..&lt;BR /&gt;
Thanks again</description>
      <pubDate>Thu, 01 Jul 2010 18:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-2-different-range-values-on-X-axis/m-p/41396#M1336</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-01T18:51:27Z</dc:date>
    </item>
  </channel>
</rss>

