<?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: Range plot in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212583#M42562</link>
    <description>&lt;P&gt;This basic chart type is one of many that is covered in the JMP guide. See Help &amp;gt; Books &amp;gt; Essential Graphing.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 11:24:52 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2019-06-11T11:24:52Z</dc:date>
    <item>
      <title>Range plot in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212573#M42561</link>
      <description>&lt;P&gt;I have a data with all min and max values. How would I plot the range for each variable in graph builder. I want my output as shown in attached image. Below is the sample data.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;School&lt;/TD&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;TD&gt;Min(Hours)&lt;/TD&gt;&lt;TD&gt;Max(Hours)&lt;/TD&gt;&lt;TD&gt;Min(Students)&lt;/TD&gt;&lt;TD&gt;Max(Students)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Physics&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Chemistry&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Math&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Physics&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Chemistry&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Math&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;63&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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="1.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17711iB4E14B99FCA408BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpeg" alt="1.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you can share the procedure or JSL script, that would be great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:58:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212573#M42561</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-06-11T10:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Range plot in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212583#M42562</link>
      <description>&lt;P&gt;This basic chart type is one of many that is covered in the JMP guide. See Help &amp;gt; Books &amp;gt; Essential Graphing.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:24:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212583#M42562</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-06-11T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Range plot in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212591#M42563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;suggested, the Essentials of Graphing book is a great read and will explain in more detail this and other plots. But, I see there being two complexities in your plot that might take a little extra work, which is that you want a range area plot with steps not a polygon fill, and you want a column switcher operational for switching a pair of variables. Here's how I would approach this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, for the basic plot, you can accomplish this using the Bar element with a Range style. Here's what that will look like:&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-center" image-alt="min and max.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17712i6016A71701EEBBB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="min and max.png" alt="min and max.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a video showing the steps:&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-UwdDR5aDE6PRX6ofNHnD1Us3nUrNwLs_w1600h990r597" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6064699729001" 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-UwdDR5aDE6PRX6ofNHnD1Us3nUrNwLs_w1600h990r597');  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/UwdDR5aDE6PRX6ofNHnD1Us3nUrNwLs_"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the JSL, also saved to the attached table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Graph Spacing( 10 ),
	Variables(
		X( :Subject ),
		Y( :Name( "Min(Hours)" ) ),
		Y( :Name( "Max(Hours)" ), Position( 1 ) ),
		Group X( :School )
	),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 4 ), Bar Style( "Range" ) ) ),
	SendToReport(
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "Min and Max Hours by Subject and School" )} ),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "Hours" )} ),
		Dispatch( {}, "Graph Builder", FrameBox, {DispatchSeg( BarSeg( 1 ), Set Width Proportion( 1 ) )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 2 ), {DispatchSeg( BarSeg( 1 ), Set Width Proportion( 1 ) )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, what you'll notice is that if you try to add a column switcher, you have the option to switch only one variable, but in your case, you need to switch out two, since that is what defines your range. You could add two Column Switchers, but I tend to not like that method, as it ends up looking like this, where you need to toggle two separate items: &lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2019-06-11 at 8.14.55 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17718iC2D85236D09B294D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-06-11 at 8.14.55 AM.png" alt="Screen Shot 2019-06-11 at 8.14.55 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can make this plot work with a single Column Switcher-like operation, but need to do a little restructuring of your table via Tables &amp;gt; Stack. Here's how you will set that up:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-06-11 at 7.53.24 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17713i5D5B8FA05D3ADCED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-06-11 at 7.53.24 AM.png" alt="Screen Shot 2019-06-11 at 7.53.24 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will give you the following table, which you will notice has taken your pairs of columns that represent the different outcome variable and stacked them on top of each other (and you'll see I had to use the multiple series stack here, series being the term for a set of columns that define a variable):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2019-06-11 at 8.09.55 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17716i81C263A00EC68021/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-06-11 at 8.09.55 AM.png" alt="Screen Shot 2019-06-11 at 8.09.55 AM.png" /&gt;&lt;/span&gt;Now that we have that table, we can produce the plot as before (with the appropriate changes to which columns you use, since they're named differently now), and then, invoke not the column switcher, but the Local Data Filter, and pick either the Variable 1 or Variable 2 column (they're identical). Now, when you filter to show just one level of that variable you are showing just one pair of the outcome variables, thus a switch between Hours and Students:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="switcher.gif" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17715i148C77F243339428/image-size/large?v=v2&amp;amp;px=999" role="button" title="switcher.gif" alt="switcher.gif" /&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;I hope this helps&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:15:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212591#M42563</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-06-11T12:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Range plot in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212678#M42581</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;,&lt;BR /&gt;Its a great help.</description>
      <pubDate>Wed, 12 Jun 2019 00:35:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Range-plot-in-JMP/m-p/212678#M42581</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-06-12T00:35:04Z</dc:date>
    </item>
  </channel>
</rss>

