<?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: Shading in on graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59938#M32776</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;: &amp;nbsp;Different solutions for different circumstances... :D&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... and I'm always in favor of promoting Graphics Scripts and the use of the Customize menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2018 14:28:53 GMT</pubDate>
    <dc:creator>MikeD_Anderson</dc:creator>
    <dc:date>2018-06-11T14:28:53Z</dc:date>
    <item>
      <title>Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59856#M32734</link>
      <description>&lt;P&gt;I have a chart that evolves over time. At each time point I compute a point estimate and for each point estimate I compute a lower and upper confidence interval value. This gives a range at each time point but it also gets narrower over time as I have more data as time evolves.&lt;/P&gt;
&lt;P&gt;An example of some data and the chart I created in graph builder are attached.&lt;/P&gt;
&lt;P&gt;Is there a way of coding to shade in the region that is covered by the interval estimate? &lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Discussion question.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11051iCC05F9C69308667F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Discussion question.PNG" alt="Discussion question.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;I include a PNG file to hopefully make clear what I mean. (The yellow would extend from beginning to end of the time period.)&lt;/P&gt;
&lt;P&gt;If anybody can help would be great.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 15:42:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59856#M32734</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2018-06-10T15:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59861#M32737</link>
      <description>&lt;P&gt;You can add any kind of graphics to your Graph Builder output by adding an&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Add Graphics Script&amp;nbsp;&lt;/P&gt;
&lt;P&gt;item to your platform.&amp;nbsp; See the script below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="poly.PNG" style="width: 666px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11050iA048286C43C10593/image-size/large?v=v2&amp;amp;px=999" role="button" title="poly.PNG" alt="poly.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();
Graph Builder(
	Size( 531, 454 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Index ),
		Y( :Point estimate ),
		Y( :Lower, Position( 1 ) ),
		Y( :Upper, Position( 1 ) )
	),
	Elements(
		Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 3 ) ),
		Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 5 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				3,
				Base( 0, 0, 0, Item ID( "Point estimate", 1 ) ),
				Base( 1, 0, 0, Item ID( "Lower", 1 ) ),
				Base( 2, 0, 0, Item ID( "Upper", 1 ) ),
				Properties( 0, {Line Color( 0 )}, Item ID( "Point estimate", 1 ) ),
				Properties( 1, {Line Color( 0 )}, Item ID( "Lower", 1 ) ),
				Properties( 2, {Line Color( 0 )}, Item ID( "Upper", 1 ) )
			), Legend Model(
				5,
				Properties( 0, {Line Color( 0 )}, Item ID( "Point estimate", 1 ) ),
				Properties( 1, {Line Color( 0 )}, Item ID( "Lower", 1 ) ),
				Properties( 2, {Line Color( 0 )}, Item ID( "Upper", 1 ) )
			)}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Add Graphics Script(
				2,
				Description( "Script" ),
				dt = Current Data Table();

				yMatrix = dt:upper &amp;lt;&amp;lt; get values |/
				Matrix( Reverse( As List( dt:lower &amp;lt;&amp;lt; get values ) ) );
				xMatrix = dt:index &amp;lt;&amp;lt; get values |/
				Matrix( Reverse( As List( dt:index &amp;lt;&amp;lt; get values ) ) );

				Fill Color( "yellow" );
				Polygon( xMatrix, yMatrix );
			), Grid Line Order( 1 ), Reference Line Order( 3 )}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Jun 2018 13:09:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59861#M32737</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-10T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59889#M32746</link>
      <description>&lt;P&gt;Thanks, Jim!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 05:46:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59889#M32746</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2018-06-11T05:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59925#M32772</link>
      <description>You can also do this in graph builder by using Areas with the range option.  Just add your UCL, Estimate, &amp;amp; LCL to the Y-axis.  Add the Area graph by dragging the icon into the graph area.  Then change the Area style to Range in the controls on the left.   Below the missing factors drop down is an outline item for variables.  Open the outline item and uncheck the Estimate.  The will make the range shown based on the UCL and LCL.  If the range is over the lines in your graph you can right click on the range in the graph, select Area &amp;gt; Move Backward.  From there you can adjust colors, transparency, etc. by double-clicking on the legend.&lt;BR /&gt;&lt;BR /&gt;M&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Mon, 11 Jun 2018 14:00:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59925#M32772</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2018-06-11T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59934#M32774</link>
      <description>&lt;P&gt;Much better than my solution.........one learns something new in JMP every day&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 14:26:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59934#M32774</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-11T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59935#M32775</link>
      <description>Thank you. Great!</description>
      <pubDate>Mon, 11 Jun 2018 14:24:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59935#M32775</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2018-06-11T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59938#M32776</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;: &amp;nbsp;Different solutions for different circumstances... :D&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... and I'm always in favor of promoting Graphics Scripts and the use of the Customize menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 14:28:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/59938#M32776</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2018-06-11T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61186#M33237</link>
      <description>&lt;P&gt;Coming in later to this - this is a nice solution and opens up some things I didn't know about JMP. One follow up question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you adjust the area so that it only covered a portion of the graph? For the example dataset provide, say I only wanted to have the yellow area for the index values &amp;gt;20 rather than for all the values. Didn't see how you would do that here.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:39:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61186#M33237</guid>
      <dc:creator>wjensen</dc:creator>
      <dc:date>2018-06-26T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61352#M33239</link>
      <description>&lt;P&gt;You can do that using my solution from above, and just restricting the polygons to the values above 20.&lt;/P&gt;
&lt;P&gt;Or, even though I have not worked throught the following, I assume that a secondary set of values could be added to the Graph Builder chart, that would only have duplicated values above 20, and that an overlay could then let you make that one an area display.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:45:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61352#M33239</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-26T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61360#M33245</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This caught my eye just today even though it is 2 weeks old.&amp;nbsp; I didn't see any scripts attached for an Area/Range element, so I am adding one.&amp;nbsp; This is a slight modification combining the range plot with transformed columns. Note the element order allows the shading to be in the background.&lt;/P&gt;&lt;P&gt;Fun discussion!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

gb = dt &amp;lt;&amp;lt;  Graph Builder(
	Size( 531, 454 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Index ),
		Y( :Point estimate ),
		Y( :Lower, Position( 1 ) ),
		Y( :Upper, Position( 1 ) ),
		Y(
			Transform Column(
				"Transform[Lower]",
				Formula( If( :Index &amp;gt;= 20, :Lower ) )
			),
			Position( 1 )
		),
		Y(
			Transform Column(
				"Transform[Upper]",
				Formula( If( :Index &amp;gt;= 20, :Upper ) )
			),
			Position( 1 )
		)
	),
	Elements(
		Area( X, Y( 4 ), Y( 5 ), Legend( 1 ), Area Style( "Range" ) ),
		Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 4 ) ),
		Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 6 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				1,
				Level Name(
					0,
					"Recent Range",
					Item ID( "Transform[Lower]..Transform[Upper]", 1 )
				),
				Properties(
					0,
					{Line Color( 9 ), Fill Color( 9 ), Transparency( 0.5 )},
					Item ID( "Transform[Lower]..Transform[Upper]", 1 )
				),
				Properties(
					-1,
					{Line Color( 9 ), Fill Color( 9 ), Transparency( 0.5 )},
					Item ID( "Recent Range", 1 )
				)
			), Legend Model(
				6,
				Properties( 2, {Line Color( 19 )}, Item ID( "Upper", 1 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 18:56:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-on-graph-builder/m-p/61360#M33245</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-06-26T18:56:27Z</dc:date>
    </item>
  </channel>
</rss>

