<?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: scatterplot with histogram next to the axis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975801#M110663</link>
    <description>&lt;P&gt;I'm sure there are other ways to do this, but here is how I did it. I start by making four graphs instead of one, using each axis twice, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_3-1791466749266.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120094i8DE12DEDC1E8C4D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_3-1791466749266.png" alt="christianz_3-1791466749266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you click the points element now, it will remove all graphs and leave only a "blank canvas", like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_4-1791466813466.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120096iCF7CF6ADC012A4A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_4-1791466813466.png" alt="christianz_4-1791466813466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next, drag and drop the desired graph element into each quadrant. Points in the bottom left, histograms in the top left and bottom right (it looks wrong, but we will fix it in the next step):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_5-1791466919281.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120097iC8D0C076C4017522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_5-1791466919281.png" alt="christianz_5-1791466919281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now for the "trick": we need to "ignore" one of the axes in each histogram, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_6-1791467014547.png" style="width: 221px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120098i6C1F3FE0DFB4A205/image-dimensions/221x255?v=v2" width="221" height="255" role="button" title="christianz_6-1791467014547.png" alt="christianz_6-1791467014547.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_7-1791467043633.png" style="width: 219px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120099i4B0050894E63A990/image-dimensions/219x258?v=v2" width="219" height="258" role="button" title="christianz_7-1791467043633.png" alt="christianz_7-1791467043633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;At this point, the graph should look like this. We are almost there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_8-1791467091270.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120100iBC9A4252E81C77DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_8-1791467091270.png" alt="christianz_8-1791467091270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now it's just a matter of resizing the axes, hiding some unwanted labels, and adjusting the style to your liking:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_9-1791467253290.png" style="width: 238px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120101iDBB7A5B356BAAF5F/image-dimensions/238x231?v=v2" width="238" height="231" role="button" title="christianz_9-1791467253290.png" alt="christianz_9-1791467253290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2026 13:51:49 GMT</pubDate>
    <dc:creator>christian-z</dc:creator>
    <dc:date>2026-10-08T13:51:49Z</dc:date>
    <item>
      <title>scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975764#M110658</link>
      <description>&lt;P&gt;I came across this &lt;A href="https://community.jmp.com/t5/Discussions/Adding-histograms-boxplots-or-densities-next-to-axis-in-the/td-p/208427" target="_self"&gt;earlier post&lt;/A&gt;&amp;nbsp;where using fit Y by X was suggested to plot histograms besides the axes for a scatter plot.&lt;/P&gt;
&lt;P&gt;This has multiple drawbacks however, taking the iris.jmp datatable as an example&lt;/P&gt;
&lt;P&gt;- you cannot show split the histogram per group (species column)&lt;/P&gt;
&lt;P&gt;- you cannot switch the histogram to kernel density&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvanderaa1_1-1791462503182.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120086i9BB7729A880549B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvanderaa1_1-1791462503182.png" alt="mvanderaa1_1-1791462503182.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a much nicer visualization is possible in ggplot2. Can below visualization be produced in JMP?&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="mvanderaa1_0-1791462043893.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120084i4C523210F39E574B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvanderaa1_0-1791462043893.png" alt="mvanderaa1_0-1791462043893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 12:31:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975764#M110658</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2026-10-08T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975779#M110659</link>
      <description>&lt;P&gt;Yes, this can be done in Graph Builder. Here's how it looks with JMP's default style and color settings. With some customization I think you could get something quite similar to your example above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_1-1791466577187.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120092iF1FD9A294918DF2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_1-1791466577187.png" alt="christianz_1-1791466577187.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a script that will generate the plot above, if you have the Iris dataset open:&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 568, 469 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Sepal length ),
		X( :Sepal length ),
		Y( :Sepal width ),
		Y( :Sepal width ),
		Overlay( :Species )
	),
	Relative Sizes( "X", [303 75] ),
	Relative Sizes( "Y", [72 246] ),
	Elements(
		Position( 1, 1 ),
		Histogram( X, Legend( 13 ), Histogram Style( "Polygon" ) )
	),
	Elements( Position( 1, 2 ), Points( X, Y, Legend( 5 ) ) ),
	Elements( Position( 2, 1 ) ),
	Elements(
		Position( 2, 2 ),
		Histogram( Y, Legend( 17 ), Histogram Style( "Polygon" ) )
	),
	SendToReport(
		Dispatch( {}, "Sepal length", ScaleBox( 2 ),
			{Label Row(
				{Automatic Tick Marks( 0 ), Show Major Labels( 0 ),
				Show Major Ticks( 0 ), Show Minor Ticks( 0 )}
			)}
		),
		Dispatch( {}, "Sepal width", ScaleBox,
			{Label Row(
				{Automatic Tick Marks( 0 ), Show Major Labels( 0 ),
				Show Major Ticks( 0 ), Show Minor Ticks( 0 )}
			)}
		),
		Dispatch( {}, "Sepal length", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "", AxisBox, {Add Axis Label( "Sepal lengthz" )} ),
		Dispatch( {}, "Sepal lengthz", TextEditBox, {Set Text( "Sepal length" )} ),
		Dispatch( {}, "Sepal width", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Sepal length", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "400", LegendBox,
			{Legend Position( {13, [-1, -1, -1], 5, [0, 1, 2], 17, [-3, -3, -3]} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 13:36:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975779#M110659</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2026-10-08T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975784#M110660</link>
      <description>&lt;P&gt;You can do this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1791466765474.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120095iAEE5F57B76551734/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1791466765474.png" alt="MathStatChem_0-1791466765474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It is a little tricky to do with the UI, but it is possible. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 13:39:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975784#M110660</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-10-08T13:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975786#M110661</link>
      <description>&lt;P&gt;related post: &amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Subplots-with-different-sizes/m-p/608204" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Subplots-with-different-sizes/m-p/608204&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 13:41:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975786#M110661</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-10-08T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975792#M110662</link>
      <description>&lt;P&gt;Hi Christian, thank you for your fast reply.&lt;/P&gt;
&lt;P&gt;This looks very nice indeed for this specific scatter plot.&lt;/P&gt;
&lt;P&gt;But what if I broaden the question for any dataset? How would I go about creating this kind of graph in the future?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 13:47:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975792#M110662</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2026-10-08T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975801#M110663</link>
      <description>&lt;P&gt;I'm sure there are other ways to do this, but here is how I did it. I start by making four graphs instead of one, using each axis twice, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_3-1791466749266.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120094i8DE12DEDC1E8C4D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_3-1791466749266.png" alt="christianz_3-1791466749266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you click the points element now, it will remove all graphs and leave only a "blank canvas", like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_4-1791466813466.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120096iCF7CF6ADC012A4A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_4-1791466813466.png" alt="christianz_4-1791466813466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next, drag and drop the desired graph element into each quadrant. Points in the bottom left, histograms in the top left and bottom right (it looks wrong, but we will fix it in the next step):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_5-1791466919281.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120097iC8D0C076C4017522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_5-1791466919281.png" alt="christianz_5-1791466919281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now for the "trick": we need to "ignore" one of the axes in each histogram, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_6-1791467014547.png" style="width: 221px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120098i6C1F3FE0DFB4A205/image-dimensions/221x255?v=v2" width="221" height="255" role="button" title="christianz_6-1791467014547.png" alt="christianz_6-1791467014547.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_7-1791467043633.png" style="width: 219px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120099i4B0050894E63A990/image-dimensions/219x258?v=v2" width="219" height="258" role="button" title="christianz_7-1791467043633.png" alt="christianz_7-1791467043633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;At this point, the graph should look like this. We are almost there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_8-1791467091270.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120100iBC9A4252E81C77DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_8-1791467091270.png" alt="christianz_8-1791467091270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now it's just a matter of resizing the axes, hiding some unwanted labels, and adjusting the style to your liking:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_9-1791467253290.png" style="width: 238px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/120101iDBB7A5B356BAAF5F/image-dimensions/238x231?v=v2" width="238" height="231" role="button" title="christianz_9-1791467253290.png" alt="christianz_9-1791467253290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 13:51:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975801#M110663</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2026-10-08T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot with histogram next to the axis</title>
      <link>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975806#M110664</link>
      <description>&lt;P&gt;Hi Christian, I'll accept this as a solution, although it would be really nice to have this functionality integrated nicely in JMP. Do you know if there's a feature request already?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 14:04:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/scatterplot-with-histogram-next-to-the-axis/m-p/975806#M110664</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2026-10-08T14:04:41Z</dc:date>
    </item>
  </channel>
</rss>

