<?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: Overlay histogram and cdf on single plot with separate editable y-axis ranges in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69244#M35034</link>
    <description>&lt;P&gt;Too funny!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I abbreviated Cumulative Sum in my attached script and previous post), and the JMP blog converted it to "** bleep** Sum"&amp;nbsp; when I posted it. Make the changes accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 23:22:22 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-08-22T23:22:22Z</dc:date>
    <item>
      <title>Overlay histogram and cdf on single plot with separate editable y-axis ranges</title>
      <link>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69206#M35022</link>
      <description>&lt;P&gt;I can create histograms and cdfs seperately using the distribution tool.&amp;nbsp; I can even overlay them on one graph if I copy and paste frame contents between the two graphs, but at this point the cdf is cropped and does not display correctly.&amp;nbsp; Is there an easier way to do this?&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="Screen Shot 2018-08-22 at 10.02.41 AM.jpg" style="width: 650px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12137i76461A1EA2AF8195/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-22 at 10.02.41 AM.jpg" alt="Screen Shot 2018-08-22 at 10.02.41 AM.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-08-22 at 10.02.53 AM.jpg" style="width: 800px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12138iA97C008E693AA44C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-22 at 10.02.53 AM.jpg" alt="Screen Shot 2018-08-22 at 10.02.53 AM.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-08-22 at 10.03.09 AM.jpg" style="width: 674px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12139i1AB9E6F68D3FA2F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-22 at 10.03.09 AM.jpg" alt="Screen Shot 2018-08-22 at 10.03.09 AM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 17:06:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69206#M35022</guid>
      <dc:creator>estesmd1981</dc:creator>
      <dc:date>2018-08-22T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay histogram and cdf on single plot with separate editable y-axis ranges</title>
      <link>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69243#M35033</link>
      <description>&lt;P&gt;There might be an easier method, but I create a Summary table of the response returning the % of Total. Then compute the **bleep** Percent then graph the Count and **bleep** percent as 2 Y vaariables, making the **bleep** Percent the right axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the method using a script, below is the resulting picture&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");

dtsum = dt &amp;lt;&amp;lt; Summary(
	Group( :height ),
	Name( "% of Total" )(:height),
	Freq( "None" ),
	Weight( "None" )
);

dtsum:N Rows &amp;lt;&amp;lt; set name("Count");
cumcol = dtsum &amp;lt;&amp;lt; New Column("**bleep** Sum", Numeric, Continuous, 
		Format( "Percent", 12, 1 ),
		Formula(
			If( Row() == 1,
				:Name( "% of Total(height)" ),
				:Name( "% of Total(height)" ) + Lag( :**bleep** Sum, 1 )
			)
		),

); 

 gb = dtsum &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 448 ),
	Show Control Panel( 0 ),
	Variables(
		X( :height ),
		Y( :**bleep** Sum, Side( "Right" ) ),
		Y( :Name( "% of Total(height)" ), Position( 1 ) )
	),
	Elements(
		Bar( X, Y( 2 ), Legend( 17 ) ),
		Points( X, Y( 1 ), Legend( 14 ) ),
		Smoother( X, Y( 1 ), Legend( 15 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"**bleep** Sum",
			ScaleBox,
			{Format( "Percent", 12, 1 ), Min( 0 ), Max( 1.02551020408163 ),
			Inc( 0.1 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {17, [2], 14, [0], 15, [1]} ), Position( {2, 0, 1} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&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="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12144i8C5E36BB101306E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 21:31:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69243#M35033</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-22T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay histogram and cdf on single plot with separate editable y-axis ranges</title>
      <link>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69244#M35034</link>
      <description>&lt;P&gt;Too funny!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I abbreviated Cumulative Sum in my attached script and previous post), and the JMP blog converted it to "** bleep** Sum"&amp;nbsp; when I posted it. Make the changes accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:22:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlay-histogram-and-cdf-on-single-plot-with-separate-editable/m-p/69244#M35034</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-22T23:22:22Z</dc:date>
    </item>
  </channel>
</rss>

