<?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 could I get 2 y axis with 1 x axis for each plot in a panel? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123579#M4779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note, however, for the original use case that was posted, the COLUMNDATARANGE option should not be used. That option improves the output for the data I used in my example,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 19:47:03 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2013-10-25T19:47:03Z</dc:date>
    <item>
      <title>How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123575#M4775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I would like to plot the Drug PK concentration versus QTcF(a index of ECG) for each Subject over time. PK concentration will use the Y2 axis as the scale mark while QTcF use Y axis as the scale, the x axis will be used at the same time by PK and QTcF for each subject (see below graph), however I searched the Guidelines and found no way to do so. I guess the only option can reach this target is to use the GTL, but I am not experienced on this. I am wondering we need to use the Layout datapanel with Layout Overlay together in GTL?&lt;/P&gt;&lt;P&gt;Hope you can&amp;nbsp; help me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qtchangeandconc.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4436_qtchangeandconc.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123575#M4775</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2013-10-25T06:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123576#M4776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a very simple example that you give you the ability to produce your plot. Let me know if you have any questions about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define statgraph y2panel;&lt;/P&gt;&lt;P&gt;begingraph;&lt;/P&gt;&lt;P&gt;layout datapanel classvars=(sex) / columns=2 headerlabeldisplay=value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; layout prototype;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seriesplot x=name y=height / lineattrs=graphdata1 display=(markers);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seriesplot x=name y=weight / yaxis=y2 lineattrs=graphdata2 display=(markers);&lt;/P&gt;&lt;P&gt;&amp;nbsp; endlayout;&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endgraph;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgrender data=sashelp.class template=y2panel; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 14:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123576#M4776</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-25T14:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123577#M4777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Below is waht I got by your code. why the graph on the left labeled as 'M'? isn't for all students? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4442" alt="class.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4442_class.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 16:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123577#M4777</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-10-25T16:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123578#M4778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because some are male and some are female. To have only female names for the "F" cell and male names for the "M" cell, add COLUMNDATARANGE=UNION to the LAYOUT DATAPANEL after the "/". Sorry about the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123578#M4778</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-25T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123579#M4779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note, however, for the original use case that was posted, the COLUMNDATARANGE option should not be used. That option improves the output for the data I used in my example,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123579#M4779</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-25T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123580#M4780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dan,&lt;/P&gt;&lt;P&gt;Your answer is quite helpful, but may I ask how to add legend below the plot (like red line is Height and blue is weight)?&lt;/P&gt;&lt;P&gt;I just read the SAS guideline book&amp;nbsp; and it impressed me only if we use the OVERYLAY layout, can we add the legend, is this the case? If so, does this there is no way to add the legend below the figure?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 03:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123580#M4780</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2013-10-26T03:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123581#M4781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So cool!&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 03:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123581#M4781</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2013-10-26T03:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123582#M4782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dan,&lt;/P&gt;&lt;P&gt;May I seek your answer to 'How can I re-value the scale in the y2 axis? For example, in the PROC GPLOT, we can set the values list in the axis property, but after I read the documentation, it seems we can not use this in PROC TEMPLATE'. Any comment are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 00:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123582#M4782</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2013-10-27T00:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123583#M4783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very glad you can provide this question, which is helpful when I did my plot. Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 00:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123583#M4783</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2013-10-27T00:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123584#M4784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to add the legend. Here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc template;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;define statgraph y2panel;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;begingraph;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;layout datapanel classvars=(sex) / columns=2 headerlabeldisplay=value;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; layout prototype;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seriesplot x=name y=height / lineattrs=graphdata1 display=(markers) name="a";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seriesplot x=name y=weight / yaxis=y2 lineattrs=graphdata2 display=(markers) name="b";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; endlayout;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; sidebar / spacefill=false;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discretelegend "a" "b";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; endsidebar;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;endlayout;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;endgraph;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sgrender data=sashelp.class template=y2panel; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123584#M4784</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-28T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How could I get 2 y axis with 1 x axis for each plot in a panel?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123585#M4785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can set the axis tick values in GTL. If you are in a DATA PANEL, like the example above, use the TICKVALUELIST option inside either the ROWAXISOPTS or COLUMNAXISOPTS option, depending on the axis you want to control. There is also a VIEWMIN/VIEWMAX option to control the limits of the axis. For layout OVERLAYs, you would use the same options inside of XAXISOPTS/YAXISOPTS/X2AXISOPTS/Y2AXISOPTS. Does this answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-could-I-get-2-y-axis-with-1-x-axis-for-each-plot-in-a-panel/m-p/123585#M4785</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-28T14:36:25Z</dc:date>
    </item>
  </channel>
</rss>

