<?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: GraphBuilder Plot: Labels? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694481#M87956</link>
    <description>&lt;P&gt;1:0 for JSL vs. GUI&amp;nbsp; :)&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Delimiter("\!N")&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 04 Nov 2023 08:40:31 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-11-04T08:40:31Z</dc:date>
    <item>
      <title>GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/693770#M87913</link>
      <description>&lt;P&gt;Hi, I know how to enable Labels for Heatmaps:the labels are nicely aligned with the heatmap cells and the values correspond to the column values which are used as color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1698962284387.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58279i30793EB8DCB6A0F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1698962284387.png" alt="hogi_4-1698962284387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also know how to enable labels for point plots - where the labels can be chosen independent of the "color" column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1698962632747.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58281i2B2819FD4EB3A3EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_6-1698962632747.png" alt="hogi_6-1698962632747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to combine both approaches:&lt;BR /&gt;Heatmap labels, where a column is used as labels which is NOT THE SAME as the column used for color?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Application case:&lt;BR /&gt;use a meaningful, normalized value as color [e.g. mortality rate] - but show the actual counts [e.g. Covid 19 victims] as labels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-on question:&amp;nbsp;&amp;nbsp;is it possible to use&amp;nbsp;&lt;STRONG&gt;Character Labels&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;e.g. a combination of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1698961442759.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58277i0A98BA279EB0B74A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1698961442759.png" alt="hogi_2-1698961442759.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;and&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1698961330799.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58276i0B973E4AEF6182CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1698961330799.png" alt="hogi_1-1698961330799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... something like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1698961783152.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58278iFB0699F32FDFB879/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1698961783152.png" alt="hogi_3-1698961783152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so, similar to adding point labels to a heatmap plot, but with the text nicely confined to the heatmap cells?&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/Big Class.jmp" );
dt  &amp;lt;&amp;lt; New Formula Column(
	Operation( Category( "Distributional" ), "Rank" ),
	Columns( :height ),
	Group By( :age, :sex )
);


dtsplit = dt &amp;lt;&amp;lt; Split(
	Split By( :"Rank[height][age,sex]"n ),
	Split( :name ),
	Group( :age, :sex ),
	Remaining Columns( Drop All )
);

dtCombine = dtsplit &amp;lt;&amp;lt; Combine Columns(
	columns( :"1"n, :"2"n, :"3"n, :"4"n, :"5"n, :"6"n, :"7"n ),
	Column Name( "Students" ),
	Delimiter( "," )
);

New Column( "N_students",
	Formula( N Items( Words( :Students, "," ) ) )
);

Graph Builder(
	Variables( Y( :age ), Group X( :sex ), Color( :N_students ) ),
	Elements( Heatmap( Y ) )
);

dtCombine &amp;lt;&amp;lt; Split(
	Split By( :sex ),
	Split( :Students ),
	Group( :age ),
	Remaining Columns( Drop All )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 22:23:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/693770#M87913</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-02T22:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694323#M87941</link>
      <description>&lt;P&gt;I was about to request this -- we would use this *all the time*.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[update -- Jarmo showed that JMP already does this -- kudos!]&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:59:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694323#M87941</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2023-11-14T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694330#M87942</link>
      <description>&lt;P&gt;Set column as label and label by row?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1699035275018.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58320i1EF7E02E02B81403/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_5-1699035275018.png" alt="jthi_5-1699035275018.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;</description>
      <pubDate>Fri, 03 Nov 2023 18:14:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694330#M87942</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-03T18:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694333#M87944</link>
      <description>&lt;P&gt;With some cheating (manually adding some linebreaks in the table), the best I can offer at the moment:&lt;BR /&gt;a combination of heatmap and points.&lt;BR /&gt;... unfortunately with the labels placed somehow arbitrarily&lt;BR /&gt;&lt;BR /&gt;There is an entry in the wish list to solve such issues, but unfortunately it got archived :(&lt;/img&gt;&lt;BR /&gt;&lt;LI-MESSAGE title="Label Alignment in Graph Builder" uid="110598" url="https://community.jmp.com/t5/JMP-Wish-List/Label-Alignment-in-Graph-Builder/m-p/110598#U110598" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1699035825275.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58322iE95522E02BC1276A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1699035825275.png" alt="hogi_1-1699035825275.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;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtSplit &amp;lt;&amp;lt; Graph Builder(
	Variables( Y( :age ), Group X( :sex ), Color( :N_students ) ),
	Elements(
		Heatmap( Y, Legend( 1 ) ),
		Points( Y, Color( 0 ), Legend( 2 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				2,
				Properties( 0, {Marker Size( 0 )}, Item ID( "age", 1 ) )
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:30:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694333#M87944</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-03T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694336#M87945</link>
      <description>&lt;P&gt;What a wonderful day - it's already there :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite hidden feature!&lt;BR /&gt;The labels don't change when rows or columns get added as labels,&lt;/P&gt;&lt;P&gt;The labels just update when the user switches back and forth the label setting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1699036619288.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58323iC933CF3F93D6FEB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1699036619288.png" alt="hogi_0-1699036619288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:38:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694336#M87945</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-03T18:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694369#M87950</link>
      <description>&lt;P&gt;So, actually&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:name &amp;lt;&amp;lt; Label( 1 );
Graph Builder(
	Variables( X( :sex ), Y( :age ) ),
	Elements( Heatmap( X, Y, Label( "Label by Row" ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... will do the job.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1699043059108.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58325iF4930806BB1F5582/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1699043059108.png" alt="hogi_1-1699043059108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a setting to get the entries separated by newlines instead of semicolons?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 20:27:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694369#M87950</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-03T20:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694379#M87953</link>
      <description>&lt;P&gt;Use the earlier script you did use and use \!N as separator&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Formula Column(Operation(Category("Distributional"), "Rank"), Columns(:height), Group By(:age, :sex));


dtsplit = dt &amp;lt;&amp;lt; Split(Split By(:"Rank[height][age,sex]"n), Split(:name), Group(:age, :sex), Remaining Columns(Drop All));

dtsplit &amp;lt;&amp;lt; Combine Columns(columns(:"1"n, :"2"n, :"3"n, :"4"n, :"5"n, :"6"n, :"7"n), Column Name("Students"), Delimiter("\!N"));
//dtCombine &amp;lt;&amp;lt; get name;

dtsplit &amp;lt;&amp;lt; New Column("N_students", Formula(N Items(Words(:Students, "\!N"))));
Column(dtsplit, "Students") &amp;lt;&amp;lt; Label(1);

gb = dtsplit &amp;lt;&amp;lt; Graph Builder(
	Variables(Y(:age), Group X(:sex), Color(:N_students)),
	Elements(Heatmap(Y, Legend(1), Label("Label by Row")))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2023 21:01:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694379#M87953</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-03T21:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder Plot: Labels?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694481#M87956</link>
      <description>&lt;P&gt;1:0 for JSL vs. GUI&amp;nbsp; :)&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Delimiter("\!N")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Nov 2023 08:40:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-Plot-Labels/m-p/694481#M87956</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-04T08:40:31Z</dc:date>
    </item>
  </channel>
</rss>

