<?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: How to use multiple columns with shape? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745049#M92484</link>
    <description>&lt;P&gt;edit:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workaroud: for shapes one can apply the same trick as for the Heatmap graph:&lt;BR /&gt;add another point plot to generate the additional controls outside of the wafer map&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1712610056886.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63197i3EA81AA91267E7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1712610056886.png" alt="hogi_1-1712610056886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 21:01:21 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-04-08T21:01:21Z</dc:date>
    <item>
      <title>How to use multiple columns with shape?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745023#M92482</link>
      <description>&lt;P&gt;The shape option in Graph Builder is very helpful to generate fancy plots with just a few baby-steps:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("https://en.wikipedia.org/wiki/List_of_countries_by_system_of_government",HTML Table( 6, Column Names( 1 ), Data Starts( 2 ) ));

dt &amp;lt;&amp;lt; New Column( "Country",Character,"Nominal",Formula( Word( 1, :Name, "{\!"" ) ));

dt &amp;lt;&amp;lt; Graph Builder(
	Variables( Color( :Constitutional form ), Shape( :Country ) ),
	Elements( Map Shapes( Legend( 5 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1712461690109.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63148iE460E9CC62600BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1712461690109.png" alt="hogi_0-1712461690109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;...&amp;nbsp;and you can use the legend to quickly select the appropriate countries - all respective&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now let's look at a second, more complicated example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1712464409014.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63149iE620504FEC5A5CAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1712464409014.png" alt="hogi_1-1712464409014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Open(
	"https://en.wikipedia.org/wiki/List_of_countries_and_territories_by_the_United_Nations_geoscheme",
	HTML Table( 1, Column Names( 1 ), Data Starts( 2 ) )
);


dt2 &amp;lt;&amp;lt; New Column( "Country",Character,Formula( Word( 1, :"Country / Area"n, "{\!"" ) ));

For Each Row(
		dt2,
		dt2:Geographical Subregion[] = Map Value(
			dt2:Geographical Subregion,
			{"Australia and New Zealand", "-", "Caribbean", "East", "Central America",
			"central", "Central Asia", "central", "Eastern Africa", "East",
			"Eastern Asia", "East", "Eastern Europe", "East", "Melanesia", "-",
			"Micronesia", "-", "Middle Africa", "central", "Northern Africa",
			"North", "Northern America", "North", "Northern Europe", "North",
			"Polynesia", "-", "South America", "South", "South-eastern Asia",
			"South", "Southern Africa", "South", "Southern Asia", "South",
			"Southern Europe", "South", "Western Africa", "West", "Western Asia",
			"West", "Western Europe", "West", "—", "-"},
			Unmatched( dt2:Geographical Subregion )
		)
);

dt2 &amp;lt;&amp;lt; Graph Builder(
	Variables(
		Page( :Continental Region, Levels per Row( 2 ) ),
		Color( :Geographical Subregion ),
		Shape( :Country )
	),
	Elements( Map Shapes( Legend( 24 ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;U&gt;The task:&lt;/U&gt;&lt;BR /&gt;in addition to the shapes of the countries, add a compass to quickly select the countries of the respective region.&lt;BR /&gt;With the shapes functionality it should be easy to generate the shapes for the compass&amp;nbsp; - but I don't know how to use 2 different columns as shapes ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 03:17:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745023#M92482</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-04-08T03:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple columns with shape?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745037#M92483</link>
      <description>&lt;P&gt;The actual application case is: &lt;STRONG&gt;Wafermaps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6350445142112w922h266r697" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6350445142112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6350445142112w922h266r697');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6350445142112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&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;Names Default to HERE(1);
Try(close(dt, noSave));
dt = Open( "$SAMPLE_DATA/Wafer Stacked.jmp" );
dtX = dt&amp;lt;&amp;lt; Summary(
	Group( :Lot_Wafer Label ),
	Freq( "None" ),
	Weight( "None" ),
	output table name( "Summary of Wafer Stacked grouped by Lot_Wafer Label" )
);

dtX &amp;lt;&amp;lt; New Column( "split",Formula( Random Integer( 0, 20 ) ));

dt &amp;lt;&amp;lt; Update(
	With( dtX ),
	Match Columns( :Lot_Wafer Label = :Lot_Wafer Label ),
	Add Columns from Update Table( :split ),
	Replace Columns in Main Table( None )
);
dt &amp;lt;&amp;lt; New Column( "group",

	Formula( If( sqrt(:X_Die^2 + y_Die^2) &amp;lt; :split, -20, 20 ) ),
	Value Labels( {-20 = "inner", 20 = "outer"} )
);
dt &amp;lt;&amp;lt; New Column("y",set each value(20));

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 839, 264 ),
	Show Control Panel( 0 ),
	Show Title( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :X_Die ),
		X( :group, Position( 1 ) ),
		Y( :Y_Die ),
		Y( :y, Position( 1 ) ),
		Wrap( :Wafer, Levels per Row( 5 ) ),
		Overlay( :group ),
		Color( :group )
	),
	Elements(
		Heatmap( X( 1 ), X( 2 ), Y( 1 ), Y( 2 )),
		Points( X( 2 ), Y( 2 ), Legend( 7 ) )
	),
	Local Data Filter(
		Close Outline( 1 ),
		Conditional,
		Add Filter(
			columns( :Lot, :Wafer ),
			Where( :Lot == "2" ),
			Where( :Wafer == {5, 6, 7, 8} ),
			Display( :Lot, N Items( 5 ) ),
			Display( :Wafer, N Items( 6 ) )
		)
	),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				7,
				Properties(
					1,
					{Marker( "Dot" ), Marker Size( 12 )},
					Item ID( "inner", 1 )
				),
				Properties(
					2,
					{Marker( "Circle" ), Marker Size( 12 )},
					Item ID( "outer", 1 )
				)
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 07 Apr 2024 05:01:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745037#M92483</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-04-07T05:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple columns with shape?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745049#M92484</link>
      <description>&lt;P&gt;edit:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workaroud: for shapes one can apply the same trick as for the Heatmap graph:&lt;BR /&gt;add another point plot to generate the additional controls outside of the wafer map&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1712610056886.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63197i3EA81AA91267E7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1712610056886.png" alt="hogi_1-1712610056886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 21:01:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-multiple-columns-with-shape/m-p/745049#M92484</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-04-08T21:01:21Z</dc:date>
    </item>
  </channel>
</rss>

