<?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: Need help getting (x,y) boxes drawn from data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35345#M20860</link>
    <description>&lt;P&gt;Thank you, that does what I want.&amp;nbsp; I was also thinking I might want to do this via creating a custom map, but I can't seem to get that to work.&amp;nbsp; I follow the example in the sample help file but I keep getting the message in graph builder that the shape file is not found.&amp;nbsp; I created the -Name and -XY files with the same shape ID column.&amp;nbsp; In the -NAME file I assigned the shape name definition role to the name of my shape(s).&amp;nbsp; I then created a new file with those names and some data and assigned the shape name use role to the column with the names - I put both the -NAME and -XY files in a new folder on my desktop and pointed to that folder in the shape name use role to tell JMP where to find the files.&lt;/P&gt;&lt;P&gt;I must be missing something - possibly where the paths to the files since I put them in a folder on my desktop.&amp;nbsp; If anyone has any idea how I may be going wrong, I'd appreciate some tips.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2017 16:13:16 GMT</pubDate>
    <dc:creator>dale_lehman</dc:creator>
    <dc:date>2017-02-05T16:13:16Z</dc:date>
    <item>
      <title>Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35343#M20858</link>
      <description>&lt;P&gt;I have a column with numeric X values and another with numeric Y values.&amp;nbsp; The X and Y values each contain a minimum and maximum value for a series of observations, such as&lt;/P&gt;&lt;P&gt;obs&amp;nbsp; dimension&amp;nbsp; min/max&amp;nbsp; value&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.9&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.25&lt;/P&gt;&lt;P&gt;I have 5-10 observations, each with coordinates like these.&amp;nbsp; I would like JMP to draw rectangles on an (x,y) plane with those coordinates.&amp;nbsp; Can anybody tell me how to do this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 13:50:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35343#M20858</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2017-02-05T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35344#M20859</link>
      <description>&lt;P&gt;Here is an example of taking your data and drawing a rectangle&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = New Table( "Untitled 18",
	Add Rows( 4 ),
	New Column( "dimension", Character, "Nominal", Set Values( {"X", "X", "Y", "Y"} ) ),
	New Column( "min/max", Character, "Nominal", Set Values( {"min", "max", "min", "max"} ) ),
	New Column( "value", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [1.1, 1.5, 0, 1.25] ) )
);

dtSplit = dt &amp;lt;&amp;lt; Split( Split By( :dimension, :Name( "min/max" ) ), Split( :value ), Sort by Column Property );

New Window( "Example",
	Graph Box(
		Y Scale( 0, 4 ),
		X Scale( 0, 4),
		Pen Color( "Green" );
		Pen Size( 2 );
		For( i = 1, i &amp;lt;= N Rows( dtSplit ), i++,
			Rect( dtSplit:X min[i], dtSplit:Y max[i], dtSplit:X max[i], dtSplit:Y min[i], 0 )
		);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Graph Box functions are all documented at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Graph Box&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 16:04:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35344#M20859</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-05T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35345#M20860</link>
      <description>&lt;P&gt;Thank you, that does what I want.&amp;nbsp; I was also thinking I might want to do this via creating a custom map, but I can't seem to get that to work.&amp;nbsp; I follow the example in the sample help file but I keep getting the message in graph builder that the shape file is not found.&amp;nbsp; I created the -Name and -XY files with the same shape ID column.&amp;nbsp; In the -NAME file I assigned the shape name definition role to the name of my shape(s).&amp;nbsp; I then created a new file with those names and some data and assigned the shape name use role to the column with the names - I put both the -NAME and -XY files in a new folder on my desktop and pointed to that folder in the shape name use role to tell JMP where to find the files.&lt;/P&gt;&lt;P&gt;I must be missing something - possibly where the paths to the files since I put them in a folder on my desktop.&amp;nbsp; If anyone has any idea how I may be going wrong, I'd appreciate some tips.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 16:13:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35345#M20860</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2017-02-05T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35347#M20862</link>
      <description>There is very good documentation on Creating Maps in the Essential Graphing guide:&lt;BR /&gt;     Help==&amp;gt;Books==&amp;gt;Essential Graphing&lt;BR /&gt;In JMP 13 it is Chapter 15, starting on page 303&lt;BR /&gt;&lt;BR /&gt;I suspect your issue is placing the map on your desktop and getting JMP to be able to find it there.  In my use of these maps, I always place them in the AutoLookup folders, and documented in the Essential Graphing guide</description>
      <pubDate>Sun, 05 Feb 2017 16:32:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35347#M20862</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-05T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35350#M20864</link>
      <description>&lt;P&gt;Thank you again - indeed, moving the name and shape files to the JMP map directory solved the problem.&amp;nbsp; If you can indulge one more question.&amp;nbsp; I want the shapes to be rectangles and I put in the coordinates of the 4 corners of the rectangle.&amp;nbsp; When I use graph builder and the map shape to display, I get the horizontal sides of each rectangle and diagonal lines connecting the corners, but no vertical lines for the sides of the rectangle.&amp;nbsp; I tried adding more points, but that does not seem to change anything.&amp;nbsp; Do you know why the coordinates for the 4 corners does not produce a rectangle but instead produces what I've described.&amp;nbsp; I am attempting to attach a screenshot but don't know if it will work.&amp;nbsp; Any ideas of how to change it to a rectangle would be appreciated.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 646px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5024i6EDF4D7D8C161067/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 19:15:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35350#M20864</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2017-02-05T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35351#M20865</link>
      <description>&lt;P&gt;What I suspect that is going on, is that you are not defining the 4 points of your rectangle properly.&amp;nbsp; Since with a Shape Map, what you are really defining are polygons, they must be defined in a&amp;nbsp;continuous order.&amp;nbsp; i.e. (top,left),&amp;nbsp;(top,right),&amp;nbsp;(bottom,right), (bottom,left).&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 19:54:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35351#M20865</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-05T19:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help getting (x,y) boxes drawn from data</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35352#M20866</link>
      <description>&lt;P&gt;Excellent!&amp;nbsp; Thank you so much this is a perfect solution.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 20:01:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-getting-x-y-boxes-drawn-from-data/m-p/35352#M20866</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2017-02-05T20:01:27Z</dc:date>
    </item>
  </channel>
</rss>

