<?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 How do I have two different chart types in a single graph using two axis? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-have-two-different-chart-types-in-a-single-graph-using/m-p/262150#M51309</link>
    <description>&lt;P&gt;While doing some research to answer this question, I found this article on the JMP community that helped me get started.&amp;nbsp;&lt;LI-MESSAGE title="How do I do a combination bar and line plot using Overlay Plot?" uid="13026" url="https://community.jmp.com/t5/Discussions/How-do-I-do-a-combination-bar-and-line-plot-using-Overlay-Plot/m-p/13026#U13026" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the big class sample data example of height and weight I was able to create a bar chart for weight and a line plot for height on the same chart using the Overlay Plot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_0-1588116294712.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23551i35ED28B9952AF036/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_0-1588116294712.jpeg" alt="Bass_Masri_0-1588116294712.jpeg" /&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;To do this, first clear the row states in the JMP table. Create the overlay plot with the two variables, one on the left axis and one on the right axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then go to the Red Triangle and click Show Control Panel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_1-1588116294733.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23552i431C2BBF609C7B78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_1-1588116294733.jpeg" alt="Bass_Masri_1-1588116294733.jpeg" /&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;Then select a point (for Height) and then right click and select Change to &amp;gt; Line&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_2-1588116294755.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23553i588DCE984DD6B522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_2-1588116294755.jpeg" alt="Bass_Masri_2-1588116294755.jpeg" /&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;Then the circles for height change to a line.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_3-1588116294777.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23554i1A1E75E163D0A62D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_3-1588116294777.jpeg" alt="Bass_Masri_3-1588116294777.jpeg" /&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;Similarly select a point (for Weight) and then right click and select Change to &amp;gt; Bar&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_4-1588116294798.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23556i69672DB66C1BAFE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_4-1588116294798.jpeg" alt="Bass_Masri_4-1588116294798.jpeg" /&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;Then change the axis scale, legend location and colours to suit.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_5-1588116294821.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23555iB4CEAFD36545DAA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_5-1588116294821.jpeg" alt="Bass_Masri_5-1588116294821.jpeg" /&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;Final chart with x label for name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_6-1588116294838.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23557iB5724B15ADB151F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_6-1588116294838.jpeg" alt="Bass_Masri_6-1588116294838.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open("$SAMPLE_DATA/Big Class.jmp");

Graph Builder(
	Size( 793, 696 ),
	Show Control Panel( 0 ),
	Fit to Window( "Maintain Aspect Ratio" ),
	Variables(
		X( :name ),
		Y( :height, Side( "Right" ) ),
		Y( :weight, Position( 1 ) )
	),
	Elements( Bar( X, Y( 2 ), Legend( 7 ) ), Line( X, Y( 1 ), Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Min( -0.268537964941355 ), Max( 71.08 ), Inc( 10 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties( -1, {Marker( "Circle" )}, Item ID( "weight", 1 ) )
			), Legend Model(
				6,
				Properties( 0, {Line Color( 23 )}, Item ID( "Mean(height)", 1 ) ),
				Properties( -1, {Marker( "Circle" )}, Item ID( "height", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {7, [1], 6, [0]} ), Position( {1, 0} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:01:39 GMT</pubDate>
    <dc:creator>Bass_Masri</dc:creator>
    <dc:date>2023-06-11T11:01:39Z</dc:date>
    <item>
      <title>How do I have two different chart types in a single graph using two axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-have-two-different-chart-types-in-a-single-graph-using/m-p/262150#M51309</link>
      <description>&lt;P&gt;While doing some research to answer this question, I found this article on the JMP community that helped me get started.&amp;nbsp;&lt;LI-MESSAGE title="How do I do a combination bar and line plot using Overlay Plot?" uid="13026" url="https://community.jmp.com/t5/Discussions/How-do-I-do-a-combination-bar-and-line-plot-using-Overlay-Plot/m-p/13026#U13026" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the big class sample data example of height and weight I was able to create a bar chart for weight and a line plot for height on the same chart using the Overlay Plot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_0-1588116294712.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23551i35ED28B9952AF036/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_0-1588116294712.jpeg" alt="Bass_Masri_0-1588116294712.jpeg" /&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;To do this, first clear the row states in the JMP table. Create the overlay plot with the two variables, one on the left axis and one on the right axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then go to the Red Triangle and click Show Control Panel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_1-1588116294733.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23552i431C2BBF609C7B78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_1-1588116294733.jpeg" alt="Bass_Masri_1-1588116294733.jpeg" /&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;Then select a point (for Height) and then right click and select Change to &amp;gt; Line&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_2-1588116294755.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23553i588DCE984DD6B522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_2-1588116294755.jpeg" alt="Bass_Masri_2-1588116294755.jpeg" /&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;Then the circles for height change to a line.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_3-1588116294777.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23554i1A1E75E163D0A62D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_3-1588116294777.jpeg" alt="Bass_Masri_3-1588116294777.jpeg" /&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;Similarly select a point (for Weight) and then right click and select Change to &amp;gt; Bar&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_4-1588116294798.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23556i69672DB66C1BAFE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_4-1588116294798.jpeg" alt="Bass_Masri_4-1588116294798.jpeg" /&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;Then change the axis scale, legend location and colours to suit.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_5-1588116294821.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23555iB4CEAFD36545DAA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_5-1588116294821.jpeg" alt="Bass_Masri_5-1588116294821.jpeg" /&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;Final chart with x label for name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bass_Masri_6-1588116294838.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23557iB5724B15ADB151F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bass_Masri_6-1588116294838.jpeg" alt="Bass_Masri_6-1588116294838.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open("$SAMPLE_DATA/Big Class.jmp");

Graph Builder(
	Size( 793, 696 ),
	Show Control Panel( 0 ),
	Fit to Window( "Maintain Aspect Ratio" ),
	Variables(
		X( :name ),
		Y( :height, Side( "Right" ) ),
		Y( :weight, Position( 1 ) )
	),
	Elements( Bar( X, Y( 2 ), Legend( 7 ) ), Line( X, Y( 1 ), Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Min( -0.268537964941355 ), Max( 71.08 ), Inc( 10 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties( -1, {Marker( "Circle" )}, Item ID( "weight", 1 ) )
			), Legend Model(
				6,
				Properties( 0, {Line Color( 23 )}, Item ID( "Mean(height)", 1 ) ),
				Properties( -1, {Marker( "Circle" )}, Item ID( "height", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {7, [1], 6, [0]} ), Position( {1, 0} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:01:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-have-two-different-chart-types-in-a-single-graph-using/m-p/262150#M51309</guid>
      <dc:creator>Bass_Masri</dc:creator>
      <dc:date>2023-06-11T11:01:39Z</dc:date>
    </item>
  </channel>
</rss>

