<?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: Graph Builder: How to Center Align Violin Plots with Points and Overlay Switched on? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-How-to-Center-Align-Violin-Plots-with-Points-and/m-p/68710#M34891</link>
    <description>&lt;P&gt;This misalignment of points and other graph builder elements has been documented previously. I think there was agreement that the easiest method was to live without the violin plots being colored, otherwise customize the contour violins.&amp;nbsp; Here is a script for Big Class.&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");

gb = dt &amp;lt;&amp;lt; Graph Builder(
    show control panel(0),
	Variables( X( :age ), X( :sex, Position( 1 ) ), Y( :height ), Color( :age ) ),
	Elements(
		Points( X( 1 ), X( 2 ), Y, Legend( 6 ) ),
		Contour( X( 1 ), X( 2 ), Y, Legend( 7 ) )
	),
	SendToReport(
		Dispatch( {}, "age", ScaleBox, {Label Row( 2, Show Major Grid( 1 ) )} ),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Poly Seg( "Violin (13&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Red" )}
			), DispatchSeg(
				Poly Seg( "Violin (13&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Red" )}
			), DispatchSeg(
				Poly Seg( "Violin (14&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Green" )}
			), DispatchSeg(
				Poly Seg( "Violin (14&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Green" )}
			), DispatchSeg(
				Poly Seg( "Violin (15&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Purple" )}
			), DispatchSeg(
				Poly Seg( "Violin (15&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Purple" )}
			), DispatchSeg(
				Poly Seg( "Violin (16&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Orange" )}
			), DispatchSeg(
				Poly Seg( "Violin (17&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "BlueCyan" )}
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 00:22:49 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-08-18T00:22:49Z</dc:date>
    <item>
      <title>Graph Builder: How to Center Align Violin Plots with Points and Overlay Switched on?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-How-to-Center-Align-Violin-Plots-with-Points-and/m-p/68687#M34888</link>
      <description>&lt;P&gt;Hi JMP community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just ran into a slightly frustrating issue with Graph Builder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;X axis 1: LEAD TAG&lt;/LI&gt;&lt;LI&gt;X axis 2: SWITCH TO&lt;/LI&gt;&lt;LI&gt;Y axis: Log2 Ratio After/before&lt;/LI&gt;&lt;LI&gt;Overlay: LEAD TAG&lt;/LI&gt;&lt;LI&gt;POINTS: ON&lt;/LI&gt;&lt;LI&gt;CONTOUR: ON&lt;/LI&gt;&lt;LI&gt;LINE: ON (mean + Std Err)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have almost what I want (see below) but the Violon plots are aligned left for the first group, middle for the second group, and right for the last group. Any trick to get this odd behavior corrected (i.e. all Violin plots aligned to the middle?)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GB 2 X axis Base X as Overlay Points Violin and Line ON.png" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12088iAD1FF4CFB78B2A15/image-size/large?v=v2&amp;amp;px=999" role="button" title="GB 2 X axis Base X as Overlay Points Violin and Line ON.png" alt="GB 2 X axis Base X as Overlay Points Violin and Line ON.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note: If I do not use LEAD TAG as an Overly variable, I can align the Violin plots correctly but then I have a a problem with the Line: linked across LEAD TAG groups (see below).&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="GB 2 X axis No Overlay Points Violin and Line ON.png" style="width: 752px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12089iF1BCE53D9BB50F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="GB 2 X axis No Overlay Points Violin and Line ON.png" alt="GB 2 X axis No Overlay Points Violin and Line ON.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 19:51:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-How-to-Center-Align-Violin-Plots-with-Points-and/m-p/68687#M34888</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2018-08-17T19:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: How to Center Align Violin Plots with Points and Overlay Switched on?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-How-to-Center-Align-Violin-Plots-with-Points-and/m-p/68710#M34891</link>
      <description>&lt;P&gt;This misalignment of points and other graph builder elements has been documented previously. I think there was agreement that the easiest method was to live without the violin plots being colored, otherwise customize the contour violins.&amp;nbsp; Here is a script for Big Class.&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");

gb = dt &amp;lt;&amp;lt; Graph Builder(
    show control panel(0),
	Variables( X( :age ), X( :sex, Position( 1 ) ), Y( :height ), Color( :age ) ),
	Elements(
		Points( X( 1 ), X( 2 ), Y, Legend( 6 ) ),
		Contour( X( 1 ), X( 2 ), Y, Legend( 7 ) )
	),
	SendToReport(
		Dispatch( {}, "age", ScaleBox, {Label Row( 2, Show Major Grid( 1 ) )} ),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Poly Seg( "Violin (13&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Red" )}
			), DispatchSeg(
				Poly Seg( "Violin (13&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Red" )}
			), DispatchSeg(
				Poly Seg( "Violin (14&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Green" )}
			), DispatchSeg(
				Poly Seg( "Violin (14&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Green" )}
			), DispatchSeg(
				Poly Seg( "Violin (15&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Purple" )}
			), DispatchSeg(
				Poly Seg( "Violin (15&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "Medium Dark Purple" )}
			), DispatchSeg(
				Poly Seg( "Violin (16&amp;gt;&amp;gt;F)" ),
				{Transparency( 0.4 ), Fill Color( "Orange" )}
			), DispatchSeg(
				Poly Seg( "Violin (17&amp;gt;&amp;gt;M)" ),
				{Transparency( 0.4 ), Fill Color( "BlueCyan" )}
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 00:22:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-How-to-Center-Align-Violin-Plots-with-Points-and/m-p/68710#M34891</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-18T00:22:49Z</dc:date>
    </item>
  </channel>
</rss>

