<?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: Control format and review of report output in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388301#M63841</link>
    <description>&lt;P&gt;No native ways come to my mind (but there might still be some), so here are some script ideas to maybe get you started:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To just control how many reports are in each row you should be able to just use Lineup Box with N Col:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Food Journal.jmp");

maxValsPerRow = 4;
nw = New window("", Lineup Box(N Col(maxValsPerRow),
		Bivariate(Y(:Calories), X(:Fat), By(:Food Category, :Meal))
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two "by" columns and to break into new rows when By changes (note Eval(EvalExpr()), usage):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Food Journal.jmp");

uniqVals = Associative Array(Column(dt, "Meal")) &amp;lt;&amp;lt; get keys;
maxValsPerRow = 15;
nw = New window("", vlb = V List box());

For(i = 1, i &amp;lt;= N Items(uniqVals), i++,
	vlb &amp;lt;&amp;lt; Append(Eval(EvalExpr(
		Lineup Box(N Col(Expr(maxValsPerRow)), 
			Bivariate(Y(:Calories), X(:Fat), By(:Food Category, :Meal), Where(:Meal == Expr(uniqVals[i])))
		)
	))
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 18:32:18 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-05-25T18:32:18Z</dc:date>
    <item>
      <title>Control format and review of report output</title>
      <link>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388266#M63838</link>
      <description>&lt;P&gt;I have multiple versions of JMPPro on my computer, including JMP 14.3 and JMP 16.0. I don't an option in any version for custom formatting in a report window. For example, suppose I use the bivariate (fit Y by X) platform with a "by" column, and there are 80 unique values in the "by" column. Including all plots in a single column or in a single row will slow down review of the plots. Performing a drag and drop would be tedious. What I'd like to be able to do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Specify the number of rows and plots per row in report output&lt;/P&gt;&lt;P&gt;- In the case where there are two "by" columns, have the option to put all plots from the first "by" column in a given row in the report output. For example, suppose there are two "by" columns, creating 5 unique combinations: column A has values {tea, coffee} and column B has values {milk, honey, sugar}. Nowhere in the data table does there appear a combination of coffee and honey. The first row in the report output would contain 3 plots for "tea", one each for milk, honey, and sugar. The second row in the report output would contain 2 plots for "coffee", one each for milk and sugar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- Is there a way to do this natively in JMP?&lt;/P&gt;&lt;P&gt;- If not, are there any scripts/add-ins available that allow you to format a report window this way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I could script it myself, but it would be time-consuming, and am hoping for an easy button. =)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:14:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388266#M63838</guid>
      <dc:creator>drew_baumgartel</dc:creator>
      <dc:date>2023-06-11T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Control format and review of report output</title>
      <link>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388301#M63841</link>
      <description>&lt;P&gt;No native ways come to my mind (but there might still be some), so here are some script ideas to maybe get you started:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To just control how many reports are in each row you should be able to just use Lineup Box with N Col:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Food Journal.jmp");

maxValsPerRow = 4;
nw = New window("", Lineup Box(N Col(maxValsPerRow),
		Bivariate(Y(:Calories), X(:Fat), By(:Food Category, :Meal))
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two "by" columns and to break into new rows when By changes (note Eval(EvalExpr()), usage):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Food Journal.jmp");

uniqVals = Associative Array(Column(dt, "Meal")) &amp;lt;&amp;lt; get keys;
maxValsPerRow = 15;
nw = New window("", vlb = V List box());

For(i = 1, i &amp;lt;= N Items(uniqVals), i++,
	vlb &amp;lt;&amp;lt; Append(Eval(EvalExpr(
		Lineup Box(N Col(Expr(maxValsPerRow)), 
			Bivariate(Y(:Calories), X(:Fat), By(:Food Category, :Meal), Where(:Meal == Expr(uniqVals[i])))
		)
	))
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:32:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388301#M63841</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-25T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Control format and review of report output</title>
      <link>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388319#M63843</link>
      <description>&lt;P&gt;Using the Fit Group() function, it is real easy to change the layout to 3 reports across&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="byages.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33074iBD6A98E4693EEDD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="byages.PNG" alt="byages.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the simple JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );

// For illustration, limit ages to only 3 levels
// Select matching cells
Data Table( "big class" ) &amp;lt;&amp;lt; Select Where( :age == 12 | :age == 13 | :age == 14 );

// Subset data table
// → Data Table( "Subset of big class" )
Data Table( "big class" ) &amp;lt;&amp;lt; Select Where( :age == 12 | :age == 13 | :age == 14 )
 &amp;lt;&amp;lt; Subset( Selected Rows( 1 ), Selected columns only( 0 ) );
 
// Close Data Table: big class
Close( "big class" );

fg = fit group(
Bivariate( Y( :height ), X( :weight ), By( :sex, :age ) ));
fg&amp;lt;&amp;lt;arrange in rows(3);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also suggest you look at Response Screening as a possible way for you to look at the plots&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Analyze=&amp;gt;Screening=&amp;gt;Response Screening&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:46:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-format-and-review-of-report-output/m-p/388319#M63843</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-25T18:46:09Z</dc:date>
    </item>
  </channel>
</rss>

