Hello,
I'm having trouble adding a horizontal reference line in my plot based on a column parameter. The code is attached below. I need the reference line to be a horizontal line not a vertical line:
Names Default to Here( 1 );
quantile_plot = Graph Builder(
Size( 528, 631 ),
Show Control Panel( 0 ),
Variables( X( :Dataset ), Y( :y ), Color( :SAMPLEID ) ),
Elements( Points( X, Y, Legend( 4 ), Jitter( "Random Uniform" ) ) ),
Local Data Filter(
Add Filter(
columns( :Gender, :Ethnicity, :Age, :Congener ),
Where( :Gender == "1" ),
Where( :Ethnicity == "3" ),
Where( :Age == "4" ),
Where( :Congener == "LBC028" ),
Display( :Ethnicity, N Items( 5 ) ),
Display( :Age, N Items( 4 ) ),
Display( :Congener, N Items( 15 ), Find( Set Text( "" ) ) )
)
),
SendToReport(
Dispatch(
{},
"Dataset",
ScaleBox,
{Add Ref Line( -0.5, "Solid", "Red", "", 2 )}
),
Dispatch(
{},
"y",
ScaleBox,
{Scale( "Log" ), Format( "Best", 6 ), Min( 0.261333735635329 ),
Max( 20 ), Inc( 1 ), Minor Ticks( 1 )}
)
)
);
report(quantile_plot)[axisbox(2)] << Add Ref Line( threshold, "solid", black, "", 2 );
report(quantile_plot)[axisbox(2)]<< min(threshold);
M. Dereviankin