<?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 broken axis in PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/814998#M22854</link>
    <description>&lt;P&gt;I am trying to make a plot in PROC SGPANEL with an axis break. Using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data new;
   input Type $1 Value;
   datalines;
A 10
B 15
C 12
D 17
E 205
F 225
;
run;

proc sgplot data=new;
   vbar type / response=value;
   yaxis ranges=(0-20 200-230);
run;&lt;/PRE&gt;&lt;P&gt;(this is from&amp;nbsp;&lt;A href="https://support.sas.com/kb/55/683.html" target="_self"&gt;https://support.sas.com/kb/55/683.html&lt;/A&gt;) works well in SGPLOT, but I seem to be unable to do something similar in SGPANEL. Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 11:09:16 GMT</pubDate>
    <dc:creator>karlbang</dc:creator>
    <dc:date>2022-05-25T11:09:16Z</dc:date>
    <item>
      <title>broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/814998#M22854</link>
      <description>&lt;P&gt;I am trying to make a plot in PROC SGPANEL with an axis break. Using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data new;
   input Type $1 Value;
   datalines;
A 10
B 15
C 12
D 17
E 205
F 225
;
run;

proc sgplot data=new;
   vbar type / response=value;
   yaxis ranges=(0-20 200-230);
run;&lt;/PRE&gt;&lt;P&gt;(this is from&amp;nbsp;&lt;A href="https://support.sas.com/kb/55/683.html" target="_self"&gt;https://support.sas.com/kb/55/683.html&lt;/A&gt;) works well in SGPLOT, but I seem to be unable to do something similar in SGPANEL. Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 11:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/814998#M22854</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2022-05-25T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815004#M22855</link>
      <description>You could try LOG type axis:&lt;BR /&gt;&lt;BR /&gt;rowaxis type=log;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2022 12:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815004#M22855</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-25T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815013#M22856</link>
      <description>&lt;P&gt;To emulate the behavior of PROC SGPANEL, you can &lt;A href="https://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_self"&gt;use the&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_self"&gt;ODS LAYOUT GRIDDED&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_self"&gt;statement to arrange a set of plots&lt;/A&gt; that are produced by using PROC SGPLOT.&amp;nbsp; You can use the&amp;nbsp;&lt;BR /&gt;BY statement in PROC SGPLOT to produce a set of plots, each of which will have a broken axis.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
   input Group Type $ Value;
   datalines;
1 A 10
1 B 15
1 C 12
1 D 17
1 E 205
1 F 225
2 A 12
2 B 18
2 C 19
2 D 10
2 E 215
2 F 212
;

/* use PROC SORT, if necessary, to sort the data by the BY group */

ods graphics / width=300px height=250px;
ods layout gridded columns=2 advance=BYGroup column_gutter=5px;

proc sgplot data=new;
   by Group;
   vbar type / response=value;
   yaxis ranges=(0-20 200-230);
run;

ods layout end;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2022 13:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815013#M22856</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-25T13:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815025#M22857</link>
      <description>&lt;P&gt;Thank you for the suggestion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815025#M22857</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2022-05-25T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815026#M22858</link>
      <description>&lt;P&gt;Thank you. I can see how this would work (even if I was hoping for an easier solution)&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/815026#M22858</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2022-05-25T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891344#M24049</link>
      <description>Hi Dr Wicklin,&lt;BR /&gt;&lt;BR /&gt;I need to create a panel plot with 4 subsidiary scatter plots, with a broken Y axis, and I also need to insert a different Pearson correlation coefficient for each scatter plot. SGPANEL allow me to use the INSET statement with variables, but the INSET statement in SGPLOT only allows me to use text strings. Is there any solution please?</description>
      <pubDate>Mon, 28 Aug 2023 15:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891344#M24049</guid>
      <dc:creator>SimonYT</dc:creator>
      <dc:date>2023-08-28T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891347#M24050</link>
      <description>&lt;P&gt;use PROC SGPLOT to create whatever graphs you want. Use ODS LAYOUT gridded to arrange them into a panel.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891347#M24050</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-28T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891403#M24052</link>
      <description>Thanks! Then I have to use several proc sgplot steps to make it happen. It seems there is one step no solution.</description>
      <pubDate>Mon, 28 Aug 2023 21:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891403#M24052</guid>
      <dc:creator>SimonYT</dc:creator>
      <dc:date>2023-08-28T21:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891405#M24053</link>
      <description>&lt;P&gt;If the hold up is the placement of text then you might want to look at the TEXT plot.&lt;/P&gt;
&lt;P&gt;Add a variable to hold the Text you want to display with the X, Y coordinates in the same variables as the Scatter plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data addedtext;
   infile datalines dlm=',';
   length textval $ 50;
   input textval height weight ;
datalines;
Short side of graph,50,60
Tall side of graph,70,120
;


data toplot;
   set sashelp.class
       addedtext
   ;
run;

proc sgplot data=toplot;
   scatter x=height y=weight/group=sex nomissinggroup;
   text x=height y=weight text=textval/ 
           ;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 23:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891405#M24053</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-28T23:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891411#M24054</link>
      <description>Thanks! The inset statement can do something similar. I have 4 different scatter plots with broken Y axis to be placed into one panel. Neither the inset nor the text statement allows for a 'group' option, which means we may have to use four different sgplot steps under one 'ods layout' statement to realize a panel plot.</description>
      <pubDate>Tue, 29 Aug 2023 01:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891411#M24054</guid>
      <dc:creator>SimonYT</dc:creator>
      <dc:date>2023-08-29T01:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891540#M24055</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449501"&gt;@SimonYT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks! The inset statement can do something similar. I have 4 different scatter plots with broken Y axis to be placed into one panel. Neither the inset nor the text statement allows for a 'group' option, which means we may have to use four different sgplot steps under one 'ods layout' statement to realize a panel plot.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to describe exactly what you mean by "group" option. Because the TEXT statement does use a group option though maybe not in the way that you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really, you should start you own thread, provide example data and the sgplot you have tried so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For one thing since this thread was marked "solved" many people won't bother looking. Another thing is that the original poster of a question you can mark a solution as accepted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891540#M24055</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-29T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891545#M24056</link>
      <description>Thanks for taking time, appreciated. This is a follow-up question, no need to start a new thread, as people searching online will find related messages grouped together by the same thread. I don't quite understand your personal 'should' and 'should not'. I posted my though and contributed to the same thread. If it bothers you, you may step aside please.&lt;BR /&gt;For your question, yes, I can make it clear. By 'group' I mean variable, for example, the inset statement within sgpanel can accept variable values, not just texts or strings. Does this answer your question?</description>
      <pubDate>Tue, 29 Aug 2023 15:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891545#M24056</guid>
      <dc:creator>SimonYT</dc:creator>
      <dc:date>2023-08-29T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891552#M24057</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449501"&gt;@SimonYT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for taking time, appreciated. This is a follow-up question, no need to start a new thread, as people searching online will find related messages grouped together by the same thread. I don't quite understand your personal 'should' and 'should not'. I posted my though and contributed to the same thread. If it bothers you, you may step aside please.&lt;BR /&gt;For your question, yes, I can make it clear. By 'group' I mean variable, for example, the inset statement within sgpanel can accept variable values, not just texts or strings. Does this answer your question?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But it isn't.&lt;/P&gt;
&lt;P&gt;You want Scatter, OP is VBAR. They are different plots and react differently when combined, or attempted, with other plots.&lt;/P&gt;
&lt;P&gt;OP was ONLY concerned with the AXIS, you want INSET text or similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you haven't actually clarified the group issue because TEXT statement Group= option does take a variable, in fact pretty much requires one when used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not to mention the OP provides some data and attempted plot code...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 16:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891552#M24057</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-29T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: broken axis in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891562#M24058</link>
      <description>I want to stop this discussion, as it’s non-sense to the broader scope of readers.&lt;BR /&gt;&lt;BR /&gt;For your question, I suggest you to read SAS Manual’s Inset statement under ‘sgpanel’, which is different from that of sgplot in that it takes on variable values. Hope you understand my point.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/broken-axis-in-PROC-SGPANEL/m-p/891562#M24058</guid>
      <dc:creator>SimonYT</dc:creator>
      <dc:date>2023-08-29T17:09:39Z</dc:date>
    </item>
  </channel>
</rss>

