<?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 How can I Fit y by x, with 2 By groups, to display in rows with By as columns? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681306#M86689</link>
    <description>&lt;P&gt;I have one x and multiple y.&amp;nbsp; I have only 2 By groups, although I could have more and I think this question would be valid.&amp;nbsp; I would like to display the y by x in columns with the By groups as columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating the plots using Fit y by x, if I choose "Arrange in rows" = 2, the default display will place all By group 1 first, then By group 2, etc.&amp;nbsp; I'd like to visually observe how y1 responds to x within By group 1 side-by-side with By group 2.&amp;nbsp; To plot both By groups on the same y by x, or using Graph Builder, is too messy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I teach the "Arrange in rows" feature to place the By groups in parallel columns?&amp;nbsp; I looked in Preferences and couldn't find a way to do it.&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 17:10:05 GMT</pubDate>
    <dc:creator>KurtAnderson</dc:creator>
    <dc:date>2023-09-26T17:10:05Z</dc:date>
    <item>
      <title>How can I Fit y by x, with 2 By groups, to display in rows with By as columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681306#M86689</link>
      <description>&lt;P&gt;I have one x and multiple y.&amp;nbsp; I have only 2 By groups, although I could have more and I think this question would be valid.&amp;nbsp; I would like to display the y by x in columns with the By groups as columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating the plots using Fit y by x, if I choose "Arrange in rows" = 2, the default display will place all By group 1 first, then By group 2, etc.&amp;nbsp; I'd like to visually observe how y1 responds to x within By group 1 side-by-side with By group 2.&amp;nbsp; To plot both By groups on the same y by x, or using Graph Builder, is too messy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I teach the "Arrange in rows" feature to place the By groups in parallel columns?&amp;nbsp; I looked in Preferences and couldn't find a way to do it.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 17:10:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681306#M86689</guid>
      <dc:creator>KurtAnderson</dc:creator>
      <dc:date>2023-09-26T17:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Fit y by x, with 2 By groups, to display in rows with By as columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681339#M86692</link>
      <description>&lt;P&gt;Here is a simple method to align the output.&amp;nbsp; It does assume that there are data at each x and y combination&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1695751246809.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56987i23E3D5F7D62C1AF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1695751246809.png" alt="txnelson_0-1695751246809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

nw = New Window( "Output",
	Lineup Box( N Col( 2 ),
		bivariate(
			y( :height ),
			x( :weight ),
			by( :age,:sex  )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:01:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681339#M86692</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-26T18:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Fit y by x, with 2 By groups, to display in rows with By as columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681398#M86697</link>
      <description>&lt;P&gt;Thanks Jim.&amp;nbsp; I'm less than a novice coder.&amp;nbsp; My code results in a blank page.&amp;nbsp; X and Y are continuous; By (material) is categorical.&amp;nbsp; All variable names are sanitized.&amp;nbsp; Thanks in advance for your help.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Fit Group(
	Lineup Box( N Col( 2 ), 
 
		Bivariate(
			Y( :"delP/delQ"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :" flow rate at 5 deg"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :" flow rate at 30 deg"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :" calc outlet (inches)"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :" wall angle (deg)"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :" rathole (inches)"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :"off gas"n ),
			X( :M wt% ),
			By( :material ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
	) 
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 21:17:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681398#M86697</guid>
      <dc:creator>KurtAnderson</dc:creator>
      <dc:date>2023-09-26T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Fit y by x, with 2 By groups, to display in rows with By as columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681425#M86700</link>
      <description>&lt;P&gt;I checked the Scripting Index, and Fit Group does not appear to support the LineUp Box().&amp;nbsp; I believe you will get what you want, if you just replace&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Fit Group(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Output",&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the results will be displayed in your 2 columns&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1695763606081.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56995i2E927EF4D50494E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1695763606081.png" alt="txnelson_0-1695763606081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

nw = New Window( "Output",
	Lineup Box( N Col( 2 ), 
 
		Bivariate(
			Y( :weight ),
			X( :age ),
			By( :sex ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		),
		Bivariate(
			Y( :height ),
			X( :age ),
			By( :sex ),
			Fit Line( {Line Color( {212, 73, 88} )} )
		)
	) 
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BTW, if you click on the JSL at the top of the Discussion Entry, and then cut and paste your JSL into the JSL Entry Window, the code is displayed in a more readable form for the Community Members&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 21:29:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-Fit-y-by-x-with-2-By-groups-to-display-in-rows-with-By/m-p/681425#M86700</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-26T21:29:02Z</dc:date>
    </item>
  </channel>
</rss>

