<?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: Percentual plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Percentual-plot/m-p/325055#M57449</link>
    <description>&lt;P&gt;You can do what you want, but you will need to change your data a little.&amp;nbsp; You need to split your data into ji and nein columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tables=&amp;gt;Split&lt;/P&gt;
&lt;P&gt;and then bring up Graph Builder.&amp;nbsp; In the Graph Builder, right click on the new ji or nein column and create a new transform formula column.&amp;nbsp; Use the following formula to create the percent values for the transform column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;( ji + nein ) / nein&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then in the Graph Builder window drag in your X column.&amp;nbsp; Then drag in the nein column to the Y axis.&amp;nbsp; Next drag in the ji column to the bottom of the Y axis, adding it in as a separate graph, and finally, drag in the percent column to the bottom of the Y axis. You can adjust each of the Y axes as you want.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a simple example using the supplied Big Class sample data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tri.PNG" style="width: 683px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27570i66D3060855229BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tri.PNG" alt="tri.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the JSL to produce the graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables(
		X( :age ),
		Y( :height ),
		Y( :weight ),
		Y(
			Transform Column(
				"Percent",
				Formula( ((:weight + :height) / :weight) * 1 )
			)
		)
	),
	Elements( Position( 1, 1 ), Bar( X, Y, Legend( 35 ) ) ),
	Elements( Position( 1, 2 ), Bar( X, Y, Legend( 34 ) ) ),
	Elements( Position( 1, 3 ), Bar( X, Y, Legend( 33 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Min( 0 ), Max( 125 ), Inc( 20 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Percent",
			ScaleBox,
			{Format( "Percent", 9, 1 ), Min( 0 ), Max( 4 ), Inc( 0.5 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				35,
				Properties( 0, {Fill Color( 19 )}, Item ID( "Mean(height)", 1 ) )
			), Legend Model(
				34,
				Properties( 0, {Fill Color( 20 )}, Item ID( "Mean(weight)", 1 ) )
			), Legend Model(
				33,
				Properties( 0, {Fill Color( 9 )}, Item ID( "Mean(Percent)", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {35, [2], 34, [1], 33, [0]} ), Position( {2, 1, 0} )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Oct 2020 14:01:20 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-10-22T14:01:20Z</dc:date>
    <item>
      <title>Percentual plot</title>
      <link>https://community.jmp.com/t5/Discussions/Percentual-plot/m-p/324956#M57437</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plotted some data and divided the plot into two parts. One for "good" and one for "bad" - green and red columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a possibility to add a third part in the plot which displays the percentual "bad" values for the total values of the x-axis? See Images attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:07:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Percentual-plot/m-p/324956#M57437</guid>
      <dc:creator>JohannesENS</dc:creator>
      <dc:date>2023-06-11T11:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Percentual plot</title>
      <link>https://community.jmp.com/t5/Discussions/Percentual-plot/m-p/325055#M57449</link>
      <description>&lt;P&gt;You can do what you want, but you will need to change your data a little.&amp;nbsp; You need to split your data into ji and nein columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tables=&amp;gt;Split&lt;/P&gt;
&lt;P&gt;and then bring up Graph Builder.&amp;nbsp; In the Graph Builder, right click on the new ji or nein column and create a new transform formula column.&amp;nbsp; Use the following formula to create the percent values for the transform column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;( ji + nein ) / nein&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then in the Graph Builder window drag in your X column.&amp;nbsp; Then drag in the nein column to the Y axis.&amp;nbsp; Next drag in the ji column to the bottom of the Y axis, adding it in as a separate graph, and finally, drag in the percent column to the bottom of the Y axis. You can adjust each of the Y axes as you want.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a simple example using the supplied Big Class sample data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tri.PNG" style="width: 683px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27570i66D3060855229BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tri.PNG" alt="tri.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the JSL to produce the graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables(
		X( :age ),
		Y( :height ),
		Y( :weight ),
		Y(
			Transform Column(
				"Percent",
				Formula( ((:weight + :height) / :weight) * 1 )
			)
		)
	),
	Elements( Position( 1, 1 ), Bar( X, Y, Legend( 35 ) ) ),
	Elements( Position( 1, 2 ), Bar( X, Y, Legend( 34 ) ) ),
	Elements( Position( 1, 3 ), Bar( X, Y, Legend( 33 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Min( 0 ), Max( 125 ), Inc( 20 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Percent",
			ScaleBox,
			{Format( "Percent", 9, 1 ), Min( 0 ), Max( 4 ), Inc( 0.5 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				35,
				Properties( 0, {Fill Color( 19 )}, Item ID( "Mean(height)", 1 ) )
			), Legend Model(
				34,
				Properties( 0, {Fill Color( 20 )}, Item ID( "Mean(weight)", 1 ) )
			), Legend Model(
				33,
				Properties( 0, {Fill Color( 9 )}, Item ID( "Mean(Percent)", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {35, [2], 34, [1], 33, [0]} ), Position( {2, 1, 0} )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:01:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Percentual-plot/m-p/325055#M57449</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-22T14:01:20Z</dc:date>
    </item>
  </channel>
</rss>

