Choose Language Hide Translation Bar
Highlighted
JosephMaurer
Level I

Variable Y reference lines as a function of Group X

I am looking to add referece lines to Y1 and Y2 that differ by Group X combination. For example accross Y1 I want 18.19, 16.89, 22.54, and 20.57 for 21major, 21minor, 26major, and 26minor respectively. Is there a way to made this happen?
Example.png

 

Graph Builder(
	Size( 826, 671 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables(
		X( :X3 ),
		Y( :Y ),
		Y( :Y ),
		Group X( :X2 ),
		Group X( :X1 ),
		Overlay( :ID )
	),
	Elements(
		Position( 1, 1 ),
		Points( X, Y, Legend( 11 ), Jitter( 0 ), Summary Statistic( "Mean" ) ),
		Line( X, Y, Legend( 15 ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( X, Y, Legend( 13 ), Jitter( 0 ), Summary Statistic( "Range" ) ),
		Line( X, Y, Legend( 16 ), Summary Statistic( "Range" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"Length (mm)",
			ScaleBox,
			{Format( "Best", 12 ), Min( 15.919376 ),
			Add Ref Line( 18.19, "Solid", "Black", "21major", 1 ),
			Add Ref Line( 16.89, "Solid", "Black", "21minor", 1 ),
			Add Ref Line( 22.54, "Solid", "Black", "26major", 1 ),
			Add Ref Line( 20.57, "Solid", "Black", "26minor", 1 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				13,
				Base( 0, 0, 0 ),
				Base( 1, 0, 0 ),
				Base( 2, 0, 0 ),
				Base( 3, 0, 0 ),
				Base( 4, 0, 0 ),
				Base( 5, 0, 0 ),
				Base( 6, 0, 0 ),
				Base( 7, 0, 0 ),
				Base( 8, 0, 0 ),
				Base( 9, 0, 0 ),
				Base( 10, 0, 0 )
			), Legend Model(
				16,
				Base( 0, 0, 0 ),
				Base( 1, 0, 0 ),
				Base( 2, 0, 0 ),
				Base( 3, 0, 0 ),
				Base( 4, 0, 0 ),
				Base( 5, 0, 0 ),
				Base( 6, 0, 0 ),
				Base( 7, 0, 0 ),
				Base( 8, 0, 0 ),
				Base( 9, 0, 0 ),
				Base( 10, 0, 0 )
			)}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text(
				"                                                                                                               "
			)}
		),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "Y1" )} ),
		Dispatch( {}, "Y 1 title", TextEditBox, {Set Text( "Y2" )} ),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Set Wrap( 20 ), Legend Position(
				{11, [-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3], 15, [-1, -1, -1,
				-1, -1, -1, -1, -1, -1, -1, -1], 13, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
				10], 16, [-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3]}
			), Position(
				{-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -1, -1, -1, -1, -1, -1,
				-1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, -3, -3, -3,
				-3, -3, -3, -3, -3, -3, -3, -3}
			)}
		)
	)
)
1 REPLY 1
Highlighted
Craige_Hales
Staff (Retired)

Re: Variable Y reference lines as a function of Group X

Article Labels

    There are no labels assigned to this post.