<?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 Subset window of variability chart's by tree structure into subsetted window in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762515#M94197</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into an issue with my script after I created a dynamic variability chart of approximately 30 charts but want to subset a small amount into another window but am unable to do so. For company policy I can't post the code but have used an example of what I am trying to do using JMP Sample Data as seen below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("C:\Program Files\SAS\JMP\17\Samples\Data\Quality Control\Braces.jmp");

vc = Variability Chart(
	Y( :"# defects"n ),
	Model( "Main Effect" ),
	X( :Date ),
	Variability Analysis(
		:"# defects"n,
		Show Range Bars( 0 ),
		Show Cell Means( 0 ),
		Std Dev Chart( 0 )
	),
	By( :Unit size )
);

subset_vc = New Window("Only some vc", vlis = V List Box());
frameboxes_to_subset = {1, 3, 5}; // Want to get when unit size = 4, 8, 12
vc_rpt = vc &amp;lt;&amp;lt; Report;
show(N Items( (vc_rpt &amp;lt;&amp;lt; XPath( "//FrameBox" )) ));
structure = vc_rpt &amp;lt;&amp;lt; Show tree structure;
for(i = 1, i &amp;lt;= N Items(frameboxes_to_subset), i++,
	vlis &amp;lt;&amp;lt; append(vc_rpt[FrameBox(frameboxes_to_subset[i])]);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am able to see in the log that the original vc_rpt has 6 Frameboxes as expected, but when I try to subset them based on the Framebox number seen in the "show tree structure", no graph is appended. I have also tried wrapping it in an additional V List Box and similarly nothing has worked to add to the new window. Any help would be greatly appreciated. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 22:14:48 GMT</pubDate>
    <dc:creator>neelsrejan</dc:creator>
    <dc:date>2024-06-04T22:14:48Z</dc:date>
    <item>
      <title>Subset window of variability chart's by tree structure into subsetted window in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762515#M94197</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into an issue with my script after I created a dynamic variability chart of approximately 30 charts but want to subset a small amount into another window but am unable to do so. For company policy I can't post the code but have used an example of what I am trying to do using JMP Sample Data as seen below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("C:\Program Files\SAS\JMP\17\Samples\Data\Quality Control\Braces.jmp");

vc = Variability Chart(
	Y( :"# defects"n ),
	Model( "Main Effect" ),
	X( :Date ),
	Variability Analysis(
		:"# defects"n,
		Show Range Bars( 0 ),
		Show Cell Means( 0 ),
		Std Dev Chart( 0 )
	),
	By( :Unit size )
);

subset_vc = New Window("Only some vc", vlis = V List Box());
frameboxes_to_subset = {1, 3, 5}; // Want to get when unit size = 4, 8, 12
vc_rpt = vc &amp;lt;&amp;lt; Report;
show(N Items( (vc_rpt &amp;lt;&amp;lt; XPath( "//FrameBox" )) ));
structure = vc_rpt &amp;lt;&amp;lt; Show tree structure;
for(i = 1, i &amp;lt;= N Items(frameboxes_to_subset), i++,
	vlis &amp;lt;&amp;lt; append(vc_rpt[FrameBox(frameboxes_to_subset[i])]);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am able to see in the log that the original vc_rpt has 6 Frameboxes as expected, but when I try to subset them based on the Framebox number seen in the "show tree structure", no graph is appended. I have also tried wrapping it in an additional V List Box and similarly nothing has worked to add to the new window. Any help would be greatly appreciated. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 22:14:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762515#M94197</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2024-06-04T22:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subset window of variability chart's by tree structure into subsetted window in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762527#M94203</link>
      <description>&lt;P&gt;Your error is in thinking that all of the images are in one report.&amp;nbsp; Instead, there are 6 reports, each with one image.&lt;/P&gt;
&lt;P&gt;Therefore your code needs to be changed to looping through a specified report and grabbing framebox(1) from each report.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("C:\Program Files\SAS\JMP\17\Samples\Data\Quality Control\Braces.jmp");

vc = Variability Chart(
	Y( :"# defects"n ),
	Model( "Main Effect" ),
	X( :Date ),
	Variability Analysis(
		:"# defects"n,
		Show Range Bars( 0 ),
		Show Cell Means( 0 ),
		Std Dev Chart( 0 )
	),
	By( :Unit size )
);

subset_vc = New Window("Only some vc", vlis = V List Box());
frameboxes_to_subset = {1, 3, 5}; // Want to get when unit size = 4, 8, 12
vc_rpt = vc &amp;lt;&amp;lt; Report;
//show(N Items( (vc_rpt &amp;lt;&amp;lt; XPath( "//FrameBox" )) ));
//structure = vc_rpt &amp;lt;&amp;lt; Show tree structure;
for(i = 1, i &amp;lt;= N Items(frameboxes_to_subset), i++,
	vlis &amp;lt;&amp;lt; append(vc_rpt[frameboxes_to_subset[i]][FrameBox(1)]);
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1717547690582.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64875iE93B2FA45F005A37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1717547690582.png" alt="txnelson_0-1717547690582.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am also thinking that you might not want to be pulling just the FrameBox(), but instead pulling the PictureBox()&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1717547966131.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64876i76E8A8A8C34CFECD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1717547966131.png" alt="txnelson_1-1717547966131.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;subset_vc = New Window("Only some vc", vlis = V List Box());
frameboxes_to_subset = {1, 3, 5}; // Want to get when unit size = 4, 8, 12
vc_rpt = vc &amp;lt;&amp;lt; Report;
//show(N Items( (vc_rpt &amp;lt;&amp;lt; XPath( "//FrameBox" )) ));
//structure = vc_rpt &amp;lt;&amp;lt; Show tree structure;
for(i = 1, i &amp;lt;= N Items(frameboxes_to_subset), i++,
	vlis &amp;lt;&amp;lt; append(vc_rpt[frameboxes_to_subset[i]][PictureBox(1)]);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 00:39:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762527#M94203</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-05T00:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Subset window of variability chart's by tree structure into subsetted window in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762554#M94212</link>
      <description>&lt;P&gt;Thanks Jim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting, will read up on that as I thought a window represented a "page" of a journal such that there would only be one. Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 07:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subset-window-of-variability-chart-s-by-tree-structure-into/m-p/762554#M94212</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2024-06-05T07:38:03Z</dc:date>
    </item>
  </channel>
</rss>

