<?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 Concatenate data table column entry with default chart title in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Concatenate-data-table-column-entry-with-default-chart-title/m-p/387781#M63798</link>
    <description>&lt;P&gt;I am a new user of JMP and have enjoyed its capabilities so far (coming from Matlab)&lt;/P&gt;&lt;P&gt;I want to include an entry from one of my data table columns within the chart title, concatenated with the default chart title as&lt;/P&gt;&lt;P&gt;(this particular entry is same for all rows within its column, its the sample ID).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Default chart title&amp;nbsp; [sample ID]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do this in the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would like know if I can use custom text within the chart (example the&lt;EM&gt;&lt;A href="https://uk.mathworks.com/help/matlab/creating_plots/add-text-to-specific-points-on-graph.html" target="_self"&gt; text&lt;/A&gt;&lt;/EM&gt; command from Matlab)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:14:16 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-06-11T11:14:16Z</dc:date>
    <item>
      <title>Concatenate data table column entry with default chart title</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-data-table-column-entry-with-default-chart-title/m-p/387781#M63798</link>
      <description>&lt;P&gt;I am a new user of JMP and have enjoyed its capabilities so far (coming from Matlab)&lt;/P&gt;&lt;P&gt;I want to include an entry from one of my data table columns within the chart title, concatenated with the default chart title as&lt;/P&gt;&lt;P&gt;(this particular entry is same for all rows within its column, its the sample ID).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Default chart title&amp;nbsp; [sample ID]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do this in the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would like know if I can use custom text within the chart (example the&lt;EM&gt;&lt;A href="https://uk.mathworks.com/help/matlab/creating_plots/add-text-to-specific-points-on-graph.html" target="_self"&gt; text&lt;/A&gt;&lt;/EM&gt; command from Matlab)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:14:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-data-table-column-entry-with-default-chart-title/m-p/387781#M63798</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-11T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate data table column entry with default chart title</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-data-table-column-entry-with-default-chart-title/m-p/387811#M63800</link>
      <description>&lt;P&gt;Here is a very simple example of adding the features you want.&amp;nbsp; If you interactively make the changes you want, you can then have JMP give you the script to reproduce the the chart, and it will give you the JSL required to make the changes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="middle.PNG" style="width: 404px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33042i8BE44E7EDC7CA5B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="middle.PNG" alt="middle.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Names Default To Here( 1 );

// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
// Report snapshot: Big Class - Fit Y by X of height by weight
biv = Data Table( "Big Class" ) &amp;lt;&amp;lt;
Bivariate( Y( :height ), X( :weight ) );

// Add some text on the graph.  A complete baseline graphics
// environment (Much like the Mathworks environment) is available
// in JMP	
Report( biv )[FrameBox( 1 )] &amp;lt;&amp;lt;
Add Graphics Script(
	Text( Center Justified, {120, 62}, "MIDDLE" )
);

// Change the title of the outline box for the chart
// This simple example adds the value from row 1 of
// the Sex column
report(biv)[OutlineBox(1)] &amp;lt;&amp;lt; set title(
	char(report(biv)[OutlineBox(1)] &amp;lt;&amp;lt; get title)
 || " " || :sex[1] );&lt;/LI-CODE&gt;
&lt;P&gt;I suggest you take the time to read the Discovering JMP document under the Help pulldown menu, along with the Essential Graphing document, which is available in the JMP Documentation Library under the Help pull down menu&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 01:00:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-data-table-column-entry-with-default-chart-title/m-p/387811#M63800</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-24T01:00:27Z</dc:date>
    </item>
  </channel>
</rss>

