<?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: Update X-Axis while grouping in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186925#M40546</link>
    <description>This works for this case only. Say if, I have column "TIME(Sec)" it measures the time for a particular process and it is a continuous variable and I don't want to change to nominal then how I will plot plot similar graph between Time and type.</description>
    <pubDate>Thu, 14 Mar 2019 10:31:48 GMT</pubDate>
    <dc:creator>Rajat</dc:creator>
    <dc:date>2019-03-14T10:31:48Z</dc:date>
    <item>
      <title>Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186573#M40501</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a query. If I have a table like below. If I plot TIME on X-axis and group the X-axis by TYPE. It will shows all five values on X-Axis for both groups, even if their is no data for that. It unnecessarily using the graph space. One way is I can nest the X-axis(TIME) with column TYPE but this works only when both columns are of type nominal. Is their a way if both columns are of different type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TIME&lt;/TD&gt;&lt;TD&gt;TYPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1-OCT-2018&lt;/TD&gt;&lt;TD&gt;BAD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2-OCT-2018&lt;/TD&gt;&lt;TD&gt;BAD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3-OCT-2018&lt;/TD&gt;&lt;TD&gt;BAD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1-JAN-2019&lt;/TD&gt;&lt;TD&gt;GOOD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1-JAN-2019&lt;/TD&gt;&lt;TD&gt;GOOD&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 13 Mar 2019 06:08:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186573#M40501</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-03-13T06:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186623#M40506</link>
      <description>&lt;P&gt;Using the GraphBuilder interface, right click on the column Time, and select &lt;STRONG&gt;Formula&lt;/STRONG&gt; and enter this formula&amp;nbsp;&lt;STRONG&gt;Format( :TIME, "m/d/y" )&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;nbsp; This will now appear in the column selector as &lt;EM&gt;Transform[Time]&lt;/EM&gt;. Drag this to X, then drag&amp;nbsp; column Type so that Time is nested within Type.&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="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16279iB95D4C01B119C040/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 08:49:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186623#M40506</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-13T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186635#M40510</link>
      <description>&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;,&lt;BR /&gt;This solution is only applicable when both column are of nominal type but I have one column of nominal modeling type and other column of Continuous modeling type.</description>
      <pubDate>Wed, 13 Mar 2019 10:25:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186635#M40510</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-03-13T10:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186810#M40530</link>
      <description>&lt;P&gt;Do you have an example where this does not work?&amp;nbsp; When you transform the time to character, by default charater is nominal.&amp;nbsp; Your response does not make sense to me.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186810#M40530</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-13T20:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186872#M40538</link>
      <description>You can take the same example, I posted. Here column "TIME" is of modeling type Continuous and column "TYPE" is of modelling type Nominal. These two columns you can't nest these two columns in graph builder.</description>
      <pubDate>Thu, 14 Mar 2019 05:23:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186872#M40538</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-03-14T05:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186912#M40542</link>
      <description>&lt;P&gt;You must not have understood my response:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Transform Time to character,&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Use the transformed column in the nesting.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The embedded graph in my post used your example, with a random Y variable.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 09:16:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186912#M40542</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-14T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186925#M40546</link>
      <description>This works for this case only. Say if, I have column "TIME(Sec)" it measures the time for a particular process and it is a continuous variable and I don't want to change to nominal then how I will plot plot similar graph between Time and type.</description>
      <pubDate>Thu, 14 Mar 2019 10:31:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186925#M40546</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-03-14T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update X-Axis while grouping in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186941#M40551</link>
      <description>&lt;P&gt;JMP platforms work as they are scripted by the JMP developers. You can make a Wish List change and maybe it will change in the future,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know how to make GraphBuilder do what I think you want unless you restructure your data table. GraphBuilder will not nest different data types, and X-Grouping uses the same X scale.&amp;nbsp; So the only way to do this is to make each group's (Type) time (X variable) its own column and drag them side by side.&amp;nbsp; Below is a capture of your table layout and a restructured, Split table: Split&amp;nbsp; :Time by :Type grouping by :row and keeping all columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Your specified table layout - Row # column added" style="width: 582px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16313i11CAA15493E4B6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Your specified table layout - Row # column added" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Your specified table layout - Row # column added&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Date Split by Type, Grouped by row #" style="width: 626px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16314iF74CBE2E1D2414D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Date Split by Type, Grouped by row #" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Date Split by Type, Grouped by row #&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is the side-by-side GraphBuilder created with the split table time table&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="image.png" style="width: 624px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16315iAF25F0180DE0F134/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :BAD ), X( :GOOD ), Y( :y ) ),
	Elements(
		Position( 1, 1 ),
		Points( X, Y, Legend( 19 ) ),
		Smoother( X, Y, Legend( 20 ) )
	),
	Elements(
		Position( 2, 1 ),
		Points( X, Y, Legend( 21 ) ),
		Smoother( X, Y, Legend( 22 ) )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course you do not need to restructure, you could create new variables via the transform, a new variable for each type then drag the transfomed variables to the X-Axis, side-by-side&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16318i9BACA494C7D20BD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is the saved script. Splitting the table will be the easiest, if there are many groups&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 856, 534 ),
	Show Control Panel( 0 ),
	Variables(
		X( Transform Column( "Bad[TIME]", Formula( If( :TYPE == "BAD", :TIME ) ) ) ),
		X(
			Transform Column(
				"Good[TIME]",
				Formula( If( :TYPE == "GOOD", :TIME ) )
			)
		),
		Y( :y )
	),
	Elements(
		Position( 1, 1 ),
		Points( X, Y, Legend( 17 ) ),
		Smoother( X, Y, Legend( 18 ) )
	),
	Elements(
		Position( 2, 1 ),
		Points( X, Y, Legend( 19 ) ),
		Smoother( X, Y, Legend( 20 ) )
	),
	SendToReport(
		Dispatch( {}, "Bad[TIME]", ScaleBox, {Format( "m/d/y", 10 )} ),
		Dispatch(
			{},
			"Good[TIME]",
			ScaleBox,
			{Format( "m/d/y", 10 ), Min( 3629059200 ), Max( 3629232000 ),
			Interval( "Numeric" ), Inc( 17.28 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model( 17, Level Name( 0, "y Bad", Item ID( "y", 1 ) ) ),
			Legend Model( 19, Level Name( 0, "y Good", Item ID( "y", 1 ) ) )}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {17, [0], 18, [-1], 19, [1], 20, [-1]} ),
			Position( {0, -1, 1, -1} )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 11:43:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-X-Axis-while-grouping-in-Graph-Builder/m-p/186941#M40551</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-14T11:43:00Z</dc:date>
    </item>
  </channel>
</rss>

