<?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: Graph Builder - subplot with different color settings? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589852#M79457</link>
    <description>&lt;P&gt;Hm,&amp;nbsp;as a fallback solution one could&amp;nbsp;stack the 2 pieces of information into a single column to get the correct values for both plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I hope that there exists a simpler solution directly via Graph Builder ?&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_1-1673791704961.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49085iC80CCDCFE2C2E970/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1673791704961.png" alt="hogi_1-1673791704961.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Airline Delays.jmp" );

New Column( "larger100min",
	Formula( If( :Arrival Delay &amp;gt; 100, 1, . ) )
);

obj = Tabulate(
	Add Table(
		Column Table( Statistics( N Missing ), Analysis Columns( :larger100min ) ),
		Column Table( Statistics( N ) ),
		Row Table( Grouping Columns( :Airline, :Day of Week ) ),
		Row Table( Grouping Columns( :Airline, :Day of Month ) )
	)
);
{dt2,dt3}=obj &amp;lt;&amp;lt; Make Into Data Table;
obj &amp;lt;&amp;lt; Close Window;

dt2 &amp;lt;&amp;lt; Concatenate(	dt3,Append to first table);

dt2 &amp;lt;&amp;lt; New Column( "Percent", Set Each Value(	((:N - :"N Missing(larger100min)"n) / :N) * 100));


dt2:Day of Week &amp;lt;&amp;lt; Set Property(
	"Value Order",
	{Custom Order(
		{"Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun"}
	), Common Order( 0 )}
);


Graph Builder(
	Size( 526, 448 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 10 ),
	Variables(
		X( :Airline ),
		Y( :Day of Week ),
		Y( :Day of Month ),
		Color( :Percent )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 2 ), Heatmap( X, Y, Legend( 15 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Day of Week",
			ScaleBox,
			{Min( -0.5 ), Max( 6.5 ), Inc( 1 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Day of Month",
			ScaleBox,
			{Min( 0.5 ), Max( 31.5 ), Inc( 1 ), Minor Ticks( 0 )}
		)
	)
)&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jan 2023 14:08:49 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-01-15T14:08:49Z</dc:date>
    <item>
      <title>Graph Builder - subplot with different color settings?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589793#M79450</link>
      <description>&lt;P&gt;Let's say I want to generate a graph to illustrate the ratio of flights with &amp;gt;100min delay, split by airline and separate graphs for the different days of a week and the days of the month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As there is just a single "color" slot, I can just use the ratio per week OR the ratio per month as color - therefore, the &lt;EM&gt;other&lt;/EM&gt; plot is always nonsense.&lt;/P&gt;&lt;P&gt;There are 2 legends which allow me to adjust the color ranges and gradient settings separately for both subplots, but I couldn't find the knob which allowed me to&amp;nbsp; &amp;nbsp;select two different columns for the color of the two plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a plot in Graph Builder where both subplots show the correct values?&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_0-1673732511403.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49074i4844956376D76D4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1673732511403.png" alt="hogi_0-1673732511403.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;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Airline Delays.jmp" );

dt &amp;lt;&amp;lt; New Column( "ratio_week",
	Formula( Col Number( If( :Arrival Delay &amp;gt; 100, 1, . ), :Airline, :Day of Week ) / Col Number( 1, :Airline, :Day of Week ) )
);
dt &amp;lt;&amp;lt; New Column( "ratio_month",
	Formula( Col Number( If( :Arrival Delay &amp;gt; 100, 1, . ), :Airline, :Day of Month ) / Col Number( 1, :Airline, :Day of Month ) )
);

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 600, 557 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :Airline ),
		Y( :Day of Month ),
		Y( :Day of Week ),
		Color( :ratio_month )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Legend( 5 ) ) ),
	Elements( Position( 1, 2 ), Heatmap( X, Y, Legend( 6 ) ) ),
	Column Switcher(
		:ratio_month,
		{:ratio_week, :ratio_month},
		Retain Axis Settings( 1 )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:43:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589793#M79450</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-08T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder - subplot with different color settings?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589852#M79457</link>
      <description>&lt;P&gt;Hm,&amp;nbsp;as a fallback solution one could&amp;nbsp;stack the 2 pieces of information into a single column to get the correct values for both plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I hope that there exists a simpler solution directly via Graph Builder ?&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_1-1673791704961.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49085iC80CCDCFE2C2E970/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1673791704961.png" alt="hogi_1-1673791704961.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Airline Delays.jmp" );

New Column( "larger100min",
	Formula( If( :Arrival Delay &amp;gt; 100, 1, . ) )
);

obj = Tabulate(
	Add Table(
		Column Table( Statistics( N Missing ), Analysis Columns( :larger100min ) ),
		Column Table( Statistics( N ) ),
		Row Table( Grouping Columns( :Airline, :Day of Week ) ),
		Row Table( Grouping Columns( :Airline, :Day of Month ) )
	)
);
{dt2,dt3}=obj &amp;lt;&amp;lt; Make Into Data Table;
obj &amp;lt;&amp;lt; Close Window;

dt2 &amp;lt;&amp;lt; Concatenate(	dt3,Append to first table);

dt2 &amp;lt;&amp;lt; New Column( "Percent", Set Each Value(	((:N - :"N Missing(larger100min)"n) / :N) * 100));


dt2:Day of Week &amp;lt;&amp;lt; Set Property(
	"Value Order",
	{Custom Order(
		{"Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun"}
	), Common Order( 0 )}
);


Graph Builder(
	Size( 526, 448 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 10 ),
	Variables(
		X( :Airline ),
		Y( :Day of Week ),
		Y( :Day of Month ),
		Color( :Percent )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 2 ), Heatmap( X, Y, Legend( 15 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Day of Week",
			ScaleBox,
			{Min( -0.5 ), Max( 6.5 ), Inc( 1 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Day of Month",
			ScaleBox,
			{Min( 0.5 ), Max( 31.5 ), Inc( 1 ), Minor Ticks( 0 )}
		)
	)
)&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 14:08:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589852#M79457</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-01-15T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder - subplot with different color settings?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589861#M79458</link>
      <description>&lt;P&gt;Is there a reason to not use multiple graph builders (you are plotting two "different" things).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1673773483851.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49081iAE92B09F8E8EBDF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1673773483851.png" alt="jthi_0-1673773483851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Airline Delays.jmp");

dt &amp;lt;&amp;lt; New Column("ratio_week", Formula(Col Number(If(:Arrival Delay &amp;gt; 100, 1, .), :Airline, :Day of Week) / Col Number(1, :Airline, :Day of Week)));
dt &amp;lt;&amp;lt; New Column("ratio_month",
	Formula(Col Number(If(:Arrival Delay &amp;gt; 100, 1, .), :Airline, :Day of Month) / Col Number(1, :Airline, :Day of Month))
);

Local Here(
	table1 = Open("C:\Program Files\SAS\JMPPRO\17\Samples\Data\Airline Delays.jmp");
	New Window("Airline Delays - Dashboard",
		Tab Page Box(
			"Dashboard",
			V Splitter Box(
				Size(737, 973),
				&amp;lt;&amp;lt;Sizes({0.5, 0.5}),
				Tab Page Box(
					"Graph Builder",
					Scroll Box(
						Size(737, 456),
						Flexible(1),
						V List Box(
							table1 &amp;lt;&amp;lt; Graph Builder(
								Size(650, 438),
								Show Control Panel(0),
								Fit to Window,
								Summary Statistic("Median"),
								Graph Spacing(4),
								Variables(X(:Airline), Y(:Day of Month), Color(:ratio_month)),
								Elements(Heatmap(X, Y, Legend(5)))
							)
						)
					)
				),
				Tab Page Box(
					"Graph Builder",
					Scroll Box(
						Size(737, 456),
						Flexible(1),
						V List Box(
							table1 &amp;lt;&amp;lt; Graph Builder(
								Size(658, 434),
								Show Control Panel(0),
								Fit to Window,
								Summary Statistic("Median"),
								Graph Spacing(4),
								Variables(X(:Airline), Y(:Day of Week), Color(:ratio_week)),
								Elements(Heatmap(X, Y, Legend(5)))
							)
						)
					)
				)
			)
		)
	) &amp;lt;&amp;lt; Move Window(954, 59) &amp;lt;&amp;lt; Set Window Icon("ReportFile");
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 15 Jan 2023 09:12:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589861#M79458</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-15T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder - subplot with different color settings?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589880#M79459</link>
      <description>&lt;P&gt;if you want to generate a dashboard - multiple Graph Builders are OK&lt;/P&gt;&lt;P&gt;- not very nice, but OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to publish a paper or generate a final presentation for your management, everybody will definitely prefer the combined graph, not the screenshot of the Dashboard :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 12:21:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/589880#M79459</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-01-15T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder - subplot with different color settings?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/597191#M80084</link>
      <description>&lt;P&gt;Thanks to a question raised by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1701"&gt;@dale_lehman&lt;/a&gt;&amp;nbsp;:&lt;BR /&gt;there is now also a new answer to this post :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is not at all better than with the workaround - but it's now just a single step to get there&amp;nbsp; ;)&lt;/img&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_0-1675509256742.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49802i7A2D3C92ECD9362A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1675509256742.png" alt="hogi_0-1675509256742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Airline Delays.jmp" );

dt &amp;lt;&amp;lt; New Column( "ratio_week",
	Formula( Col Number( If( :Arrival Delay &amp;gt; 100, 1, . ), :Airline, :Day of Week ) / Col Number( 1, :Airline, :Day of Week ) )
);
dt &amp;lt;&amp;lt; New Column( "ratio_month",
	Formula( Col Number( If( :Arrival Delay &amp;gt; 100, 1, . ), :Airline, :Day of Month ) / Col Number( 1, :Airline, :Day of Month ) )
);

Graph Builder(
	Size( 600, 557 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :Airline ),
		Y( :Day of Month ),
		Y( :Day of Week ),
		Color( :ratio_month ),
		Color( :ratio_week )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Color( 1 )) ),
	Elements( Position( 1, 2 ), Heatmap( X, Y, Color( 2 ) ) )
)&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 11:16:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-subplot-with-different-color-settings/m-p/597191#M80084</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-02-04T11:16:37Z</dc:date>
    </item>
  </channel>
</rss>

