<?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: Need help to create a broken line Y-axis using sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642915#M19795</link>
    <description>Hi Jagadish,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I already tried using ranges to plot the broken axis,but it won't allow to create broken for Y and Y2 axes.</description>
    <pubDate>Sat, 25 Apr 2020 17:27:11 GMT</pubDate>
    <dc:creator>Vams8899</dc:creator>
    <dc:date>2020-04-25T17:27:11Z</dc:date>
    <item>
      <title>Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642825#M19792</link>
      <description>&lt;P&gt;I would like to create a broken line having Y-axis and Y2-axis using Proc sgplot. Could someone please share the sample code. I am attaching the sample layout of the figure to be displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 03:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642825#M19792</guid>
      <dc:creator>Vams8899</dc:creator>
      <dc:date>2020-04-25T03:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642840#M19793</link>
      <description>&lt;P&gt;You can try the below link for an example , however i am not sure if we plot y2 axis we can break the axis , only with y axis we can get the broken axis, I hope someone will shed light on the possibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/55/683.html" target="_self"&gt;http://support.sas.com/kb/55/683.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 07:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642840#M19793</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-04-25T07:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642915#M19795</link>
      <description>Hi Jagadish,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I already tried using ranges to plot the broken axis,but it won't allow to create broken for Y and Y2 axes.</description>
      <pubDate>Sat, 25 Apr 2020 17:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/642915#M19795</guid>
      <dc:creator>Vams8899</dc:creator>
      <dc:date>2020-04-25T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648098#M19899</link>
      <description>&lt;P&gt;The documentation states:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-optionalArgGroup"&gt;
&lt;DIV id="n1k8wm6blirqqen1nr7ajys73wp9b" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD rowspan="4" class="xis-restriction"&gt;Restrictions&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;This option is valid for linear and time axes only.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryText"&gt;Only one axis can be broken. If this option is specified for both axes, then it is honored for the vertical axis and ignored for the horizontal axis.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryText"&gt;If this option is specified for both axes in the same direction (X and X2 or Y and Y2), then only the primary axis is broken.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryText"&gt;When plots are associated with both the X and X2 axes or with both the Y and Y2 axes, neither axis can be broken.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 15 May 2020 17:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648098#M19899</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-05-15T17:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648103#M19901</link>
      <description>&lt;P&gt;Yes Richard, this won't work non-linear intervals.Just looking for the alternate solution such scenarios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 17:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648103#M19901</guid>
      <dc:creator>Vams8899</dc:creator>
      <dc:date>2020-05-15T17:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648116#M19903</link>
      <description>What kind of plot, SCATTER, SERIES ?  I can't imagine a VBAR with a Y2.</description>
      <pubDate>Fri, 15 May 2020 17:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648116#M19903</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-05-15T17:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648117#M19904</link>
      <description>&lt;P&gt;I am looking this current scenario for Series plots.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 17:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648117#M19904</guid>
      <dc:creator>Vams8899</dc:creator>
      <dc:date>2020-05-15T17:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create a broken line Y-axis using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648502#M19908</link>
      <description>&lt;P&gt;You could go with the approach outlined here&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/&lt;/A&gt;&amp;nbsp;this technique was used when the RANGES= option was not available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See a sample using SERIESPLOT below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data broken_axis;
  infile cards;
  x = _n_;
  input y y2;
  cards;
100 8
120 15
655 70
688 69
180 08
120 15
655 70
688 73
180 12
;

/*
 * just to get basic graph and GTL
 */
proc sgplot data=broken_axis tmplout="c:\temp\sgplot.sas";
  series x=x y=y;
  series x=x y=y2 / y2axis;
run;

/*--Full Panel Break--*/
proc template;
  define statgraph Panel_Break;
    begingraph;
      entrytitle 'Example broken axis';
      layout lattice / rows=2 columndatarange=union rowweights=(0.35 0.65) rowgutter=2;
        columnaxes;
          columnaxis / display=(ticks tickvalues) tickvalueattrs=(size=7);
        endcolumnaxes;

        /* upper part */
        layout overlay / cycleattrs=true 
          yaxisopts=(griddisplay=on display=(ticks tickvalues) 
          tickvalueattrs=(size=7)
          offsetmin=0 linearopts=(viewmin=650 viewmax=750
          tickvaluelist=(650 700 750)))
          y2axisopts=(griddisplay=on display=(ticks tickvalues) 
          tickvalueattrs=(size=7)
          offsetmin=0 linearopts=(viewmin=65 viewmax=75
          tickvaluelist=(65.0 70.0 75.0)));
          seriesplot x=x y=y / datalabel=y;
          seriesplot x=x y=y2 / yaxis=y2 datalabel=y2;
        endlayout;
        /* lower part */
        layout overlay / cycleattrs=true 
          yaxisopts=(griddisplay=on display=(ticks tickvalues) 
          tickvalueattrs=(size=7)
          offsetmin=0 linearopts=(viewmin=0 viewmax=210
          tickvaluelist=(0 100 200)))
          y2axisopts=(griddisplay=on display=(ticks tickvalues) 
          tickvalueattrs=(size=7)
          offsetmin=0 linearopts=(viewmin=0 viewmax=21
          tickvaluelist=(0 10 20)));
          seriesplot x=x y=y / name="y" datalabel=y;
          seriesplot x=x y=y2 / yaxis=y2 name="y2" datalabel=y2;
          DiscreteLegend "y" "y2";
        endlayout;
      endlayout;
    endgraph;
  end;
run;

proc sgrender data=broken_axis template=Panel_Break;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2020 09:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-help-to-create-a-broken-line-Y-axis-using-sgplot/m-p/648502#M19908</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-05-18T09:32:09Z</dc:date>
    </item>
  </channel>
</rss>

