<?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: Box Plot and Scatter Plot on same graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333494#M58158</link>
    <description>&lt;P&gt;If the scales are similar you can drag both y variables to the Y axis.&amp;nbsp; Then click on the line chart, and shift click on the bar chart.&amp;nbsp; After that select the variables to plot for the line and bar sections.&amp;nbsp; If the scales are different you could use a second Y axis.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CombinedPlots.png" style="width: 992px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28320i976EF4DDB59AFF6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="CombinedPlots.png" alt="CombinedPlots.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 21:16:40 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2020-11-13T21:16:40Z</dc:date>
    <item>
      <title>Box Plot and Scatter Plot on same graph</title>
      <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333470#M58155</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've been perusing the forums and havent found any answer yet. I am looking to plot both a box plot to show a historical perspective of a single data parameter. And then also have a scatter plot of an experiment on the same plot for comparison sake. Currently I've just been making two plots, but it would be much more convenient if could script them into a single plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:08:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333470#M58155</guid>
      <dc:creator>careyph</dc:creator>
      <dc:date>2023-06-11T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Box Plot and Scatter Plot on same graph</title>
      <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333489#M58156</link>
      <description>&lt;P&gt;I have a similar question (?) about overlaying line graphs on top of a bar chart.&amp;nbsp; I can create them separately in different panels of a graph builder window, but don't know how to overlay them and create a Y-axis scaled to the line graphs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph Builder overlay lines on bar chart.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28318i5C84CF5288A98808/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Graph Builder overlay lines on bar chart.png" alt="Graph Builder overlay lines on bar chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 19:20:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333489#M58156</guid>
      <dc:creator>diabrotica</dc:creator>
      <dc:date>2020-11-13T19:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Box Plot and Scatter Plot on same graph</title>
      <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333494#M58158</link>
      <description>&lt;P&gt;If the scales are similar you can drag both y variables to the Y axis.&amp;nbsp; Then click on the line chart, and shift click on the bar chart.&amp;nbsp; After that select the variables to plot for the line and bar sections.&amp;nbsp; If the scales are different you could use a second Y axis.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CombinedPlots.png" style="width: 992px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28320i976EF4DDB59AFF6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="CombinedPlots.png" alt="CombinedPlots.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 21:16:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/333494#M58158</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-11-13T21:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Box Plot and Scatter Plot on same graph</title>
      <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/359851#M60982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/21705"&gt;@careyph&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you were looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_5-1613596377630.png" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30409i85B460EBB8F5D47B/image-dimensions/654x341?v=v2" width="654" height="341" role="button" title="ih_5-1613596377630.png" alt="ih_5-1613596377630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is a script to create this in graph builder, admittedly setting it up interactively is a little tricky.&amp;nbsp; I started with two scatterplots and added a box plot to the left one. Note that the left graph shows the same column (height) on both the x and y axis:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_1-1613595983922.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30405iDCE266A286A7F9BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_1-1613595983922.png" alt="ih_1-1613595983922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I removed the points from the left graph:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_2-1613596078181.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30406i04F917EAA17C89A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_2-1613596078181.png" alt="ih_2-1613596078181.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And then remove the x axis from the box plot:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_4-1613596219876.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30408i28D9BC130B87DEB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_4-1613596219876.png" alt="ih_4-1613596219876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it was just a matter of resizing the two graphs to get the chart above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should recreate the example chart:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = Open("$Sample_data/big class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 666, 345 ),
	Show Control Panel( 0 ),
	Variables(
		X( :height ),
		X( Transform Column( "Row", Formula( Row() ) ) ),
		Y( :height )
	),
	Relative Sizes( "X", [79 542] ),
	Elements( Position( 1, 1 ), Box Plot( Y, Legend( 15 ) ) ),
	Elements( Position( 2, 1 ), Points( X, Y, Legend( 13 ) ) ),
	SendToReport(
		Dispatch( {}, "height", ScaleBox,
			{Min( -0.5 ), Max( 0.5 ), Inc( 1 ), Minor Ticks( 0 ),
			Label Row( Show Major Labels( 0 ) )} ),
		Dispatch( {}, "400", LegendBox,
			{Legend Position( {15, [1, -3], 13, [0]} )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:13:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/359851#M60982</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-02-17T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Box Plot and Scatter Plot on same graph</title>
      <link>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/359889#M60983</link>
      <description>&lt;P&gt;One thought for you...and I know it's not both elements in the same plot...but I think it has some attractive capabilities, would be to set up a JMP dashboard with a side by side layout. Then you could retain all the hot spot interactivity of BOTH graphs and they would appear visually as almost on a single visualization. This entire workflow can be scripted as well in the data table so all you'd need to do is create it once...save the script and you can replicate/duplicate to your hearts content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thought relative my earlier post...and maybe somebody with a bit more JMP capability knowledge can chime in?&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4767"&gt;@Bill_Worley&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;?, the dashboard can be output to JMP interactive HTML, which opens up a large array of other JMP sharing capabilities to consumers of the chart if publishing/sharing is valuable. JMP Public, JMP Live, etc. Not sure if a hybrid type graph as others have suggested would carry along the capability richness you'd get from creating the original content in the JMP dashboard?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 17:38:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Box-Plot-and-Scatter-Plot-on-same-graph/m-p/359889#M60983</guid>
      <dc:creator>P_Bartell</dc:creator>
      <dc:date>2021-02-18T17:38:12Z</dc:date>
    </item>
  </channel>
</rss>

