<?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 Graph  Builder - small and big subset in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/572419#M78164</link>
    <description>&lt;P&gt;I have some (outlier) data points and want to compare the individual values with 2 reference sets.&lt;/P&gt;&lt;P&gt;ideal: &lt;STRONG&gt;points&lt;/STRONG&gt; for the small set and&amp;nbsp;&lt;STRONG&gt;violin&lt;/STRONG&gt;&amp;nbsp;for the references.&lt;/P&gt;&lt;P&gt;Can I specify this in Graph Builder?&lt;BR /&gt;&lt;BR /&gt;workaround 1: fill the x axis twice&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1669194108752.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47561iA6837D0911118CC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1669194108752.png" alt="hogi_0-1669194108752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workaround 2: ... with a second question&amp;nbsp;&lt;BR /&gt;use&amp;nbsp;&lt;STRONG&gt;points&lt;/STRONG&gt;&amp;nbsp;(for everything) - and &lt;STRONG&gt;packed&lt;/STRONG&gt; jitter to get a feeling for the distribution.&lt;BR /&gt;But graph Builder is a little lazy when calculating packed jitter positions for larger data sets.&lt;/P&gt;&lt;P&gt;Can i change this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_9-1669193036001.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47560i420D5CC815030037/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_9-1669193036001.png" alt="hogi_9-1669193036001.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1669192713351.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47557iC424936401612FC9/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_6-1669192713351.png" alt="hogi_6-1669192713351.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1669192761837.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47558i708B96D0DF603FFD/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_7-1669192761837.png" alt="hogi_7-1669192761837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;generatePlot=Function ({nRows},{Default Local},
	dt = New Table();
	dt &amp;lt;&amp;lt; add rows( nRows );
	dt:Column1 &amp;lt;&amp;lt; set name( "group" ) &amp;lt;&amp;lt; Set Modeling Type( "Nominal" ) &amp;lt;&amp;lt;
	Formula( tmp=Random uniform( 2 );If(tmp&amp;lt;0.001,0,tmp &amp;lt; 0.5, 1,2) );
	
	dt &amp;lt;&amp;lt; New Column( "select", Formula( Random Uniform( ) ) );
	dt &amp;lt;&amp;lt; New Column( "rnd", Formula( Random Normal( ) ) );

Graph Builder(
	Size( 523, 411 ),
	Show Control Panel( 0 ),
	Graph Spacing( 4 ),
	Variables(
		X( :group ),
		Y( :rnd ),
		Overlay( :group )
	),
	Elements( Position( 1, 1 ), Points( X, Y, Legend( 17 ), Jitter( "Packed" ) ) )
));


generatePlot(100000); // how it should look like
generatePlot(500000); // larger data set
generatePlot(1000000); // even larger data set&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:02:50 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-09T16:02:50Z</dc:date>
    <item>
      <title>Graph  Builder - small and big subset</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/572419#M78164</link>
      <description>&lt;P&gt;I have some (outlier) data points and want to compare the individual values with 2 reference sets.&lt;/P&gt;&lt;P&gt;ideal: &lt;STRONG&gt;points&lt;/STRONG&gt; for the small set and&amp;nbsp;&lt;STRONG&gt;violin&lt;/STRONG&gt;&amp;nbsp;for the references.&lt;/P&gt;&lt;P&gt;Can I specify this in Graph Builder?&lt;BR /&gt;&lt;BR /&gt;workaround 1: fill the x axis twice&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1669194108752.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47561iA6837D0911118CC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1669194108752.png" alt="hogi_0-1669194108752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workaround 2: ... with a second question&amp;nbsp;&lt;BR /&gt;use&amp;nbsp;&lt;STRONG&gt;points&lt;/STRONG&gt;&amp;nbsp;(for everything) - and &lt;STRONG&gt;packed&lt;/STRONG&gt; jitter to get a feeling for the distribution.&lt;BR /&gt;But graph Builder is a little lazy when calculating packed jitter positions for larger data sets.&lt;/P&gt;&lt;P&gt;Can i change this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_9-1669193036001.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47560i420D5CC815030037/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_9-1669193036001.png" alt="hogi_9-1669193036001.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1669192713351.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47557iC424936401612FC9/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_6-1669192713351.png" alt="hogi_6-1669192713351.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1669192761837.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47558i708B96D0DF603FFD/image-size/small?v=v2&amp;amp;px=200" role="button" title="hogi_7-1669192761837.png" alt="hogi_7-1669192761837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;generatePlot=Function ({nRows},{Default Local},
	dt = New Table();
	dt &amp;lt;&amp;lt; add rows( nRows );
	dt:Column1 &amp;lt;&amp;lt; set name( "group" ) &amp;lt;&amp;lt; Set Modeling Type( "Nominal" ) &amp;lt;&amp;lt;
	Formula( tmp=Random uniform( 2 );If(tmp&amp;lt;0.001,0,tmp &amp;lt; 0.5, 1,2) );
	
	dt &amp;lt;&amp;lt; New Column( "select", Formula( Random Uniform( ) ) );
	dt &amp;lt;&amp;lt; New Column( "rnd", Formula( Random Normal( ) ) );

Graph Builder(
	Size( 523, 411 ),
	Show Control Panel( 0 ),
	Graph Spacing( 4 ),
	Variables(
		X( :group ),
		Y( :rnd ),
		Overlay( :group )
	),
	Elements( Position( 1, 1 ), Points( X, Y, Legend( 17 ), Jitter( "Packed" ) ) )
));


generatePlot(100000); // how it should look like
generatePlot(500000); // larger data set
generatePlot(1000000); // even larger data set&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:02:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/572419#M78164</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-09T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Graph  Builder - small and big subset</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/578316#M78575</link>
      <description>&lt;P&gt;You could build that in one chart by creating separate x or y columns for each type of graph you want, and then limit which variables are used in each feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_0-1670364776635.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47982i146AC7114F5248D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1670364776635.png" alt="ih_0-1670364776635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code to reproduce:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

generatePlot=Function ({nRows},{Default Local},
	dt = New Table();
	dt &amp;lt;&amp;lt; add rows( nRows );
	dt:Column1 &amp;lt;&amp;lt; set name( "group" ) &amp;lt;&amp;lt; Set Modeling Type( "Nominal" ) &amp;lt;&amp;lt;
	Formula( tmp=Random uniform( 2 );If(tmp&amp;lt;0.001,0,tmp &amp;lt; 0.5, 1,2) );
	
	dt &amp;lt;&amp;lt; New Column( "select", Formula( Random Uniform( ) ) );
	dt &amp;lt;&amp;lt; New Column( "rnd", Formula( Random Normal( ) ) );
	dt &amp;lt;&amp;lt; New Column("Reference", Numeric, "Continuous", Format("Best", 12), Formula(If(:group == 0, Empty(), :rnd)));
	dt &amp;lt;&amp;lt; New Column("Value", Numeric, "Continuous", Format("Best", 12), Formula(If(:group == 0, :rnd)));

	dt &amp;lt;&amp;lt; Graph Builder(
		Size( 840, 589 ),
		Show Control Panel( 0 ),
		Variables( X( :group ), Y( :Reference ), Y( :Value, Position( 1 ) ) ),
		Elements(
			Points( X, Y( 2 ), Legend( 19 ) ),
			Box Plot( X, Y( 2 ), Legend( 22 ) ),
			Contour( X, Y( 1 ), Legend( 23 ) )
		),
		SendToReport(
			Dispatch( {}, "graph title", TextEditBox, {Set Text( "rnd vs. group" )} ),
			Dispatch( {}, "Y title", TextEditBox, {Set Text( "rnd" )} )
		)
	)	
);


//All three should look the same
generatePlot(100000);
generatePlot(500000);
generatePlot(1000000);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 22:14:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/578316#M78575</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2022-12-06T22:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Graph  Builder - small and big subset</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/578323#M78577</link>
      <description>&lt;P&gt;nice :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 22:32:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-small-and-big-subset/m-p/578323#M78577</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-12-06T22:32:49Z</dc:date>
    </item>
  </channel>
</rss>

