这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
已接受的解答
我不确定 JMP15 中保存的脚本中的 30 值为何/来自何处。请注意,您可以使用抓取器拖动以获得轴上的最小值 5。我没有仔细看你的剧情。 该线是 Y=X 线,可以通过右键单击自定义框架框来添加。 该脚本包含在下面。
如果使用相同的比例,您可能需要在框架框中右键单击,选择“图形”和“尺寸和比例等轴测”。由你决定。
Graph Builder(
Size( 534, 484 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X(
Transform Column(
"Transform[Ref Lab]",
Formula( Log( :Ref Lab / 5, 2 ) )
)
),
Y(
Transform Column(
"Transform[Non-Ref]",
Formula( Log( :Name( "Non-Ref" ) / 5, 2 ) )
)
)
),
Elements( Points( X, Y, Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"Transform[Ref Lab]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 9 )}
),
Dispatch(
{},
"Transform[Non-Ref]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 9 ), Min( 0 ), Max( 9 ),
Inc( 1 ), Minor Ticks( 0 )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Ref Lab" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Non- Ref Lab" )} ),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Marker Size( 5 ), Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "black" );
Pen Size( 2 );
Line Style( "Dotted" );
Y Function( x, x );
), Grid Line Order( 1 ), Reference Line Order( 3 )}
)
)
)
为了向您展示这是可能的,这里是我从您的一张图中猜测的 GraphBuilder 数据图。 我添加了拟合线和主网格。
我这样做的方法是:
- 变换 X 和 Y 数据,
- 使用线性标度
- 但自定义格式
我使用 UI 执行此操作,但将脚本复制到附加的数据表中。
该脚本如下所示:
Graph Builder(
Size( 534, 490 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X(
Transform Column(
"Transform[Ref Lab]",
Formula( Log( :Ref Lab / 5, 2 ) )
)
),
Y(
Transform Column(
"Transform[Non-Ref]",
Formula( Log( :Name( "Non-Ref" ) / 5, 2 ) )
)
)
),
Elements(
Points( X, Y, Legend( 5 ) ),
Line Of Fit( X, Y, Legend( 7 ), Adapt to Axis Scale( 0 ) )
),
SendToReport(
Dispatch(
{},
"Transform[Ref Lab]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 9, 0 ), Min( 0 ), Max( 9 ),
Inc( 1 ), Minor Ticks( 0 ), Label Row( Show Major Grid( 1 ) )}
),
Dispatch(
{},
"Transform[Non-Ref]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 30 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Ref Lab" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Non-Ref Lab" )} )
)
)
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
嗨,gzmorgan0,
感谢您再次为我提供帮助,非常感谢您的解决方案,它非常出色,我在获得演示文稿后遇到了一些问题,我不知道是否可能。 不幸的是,我仍然坚持使用 JMP 14,并且轴设置中没有自定义区域。
我无法让 y 轴从 5 开始,我尝试将 Min () 和 Max() 包含到脚本中,但无济于事
Graph Builder(
Size( 534, 490 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X(
Transform Column(
"Transform[Lab B]",
Formula( Log( :Lab B / 5, 2 ) )
)
),
Y(
Transform Column(
"Transform[Lab A]",
Formula( Log( :Name( "Lab A" ) / 5, 2 ) )
)
)
),
Elements(
Points( X, Y, Legend( 5 ) ),
Line Of Fit( X, Y, Legend( 7 ), Adapt to Axis Scale( 0 ) )
),
SendToReport(
Dispatch(
{},
"Transform[Lab B]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 30 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch(
{},
"Transform[Lab A]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 30 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Lab B" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Lab A" )} )
)
)
另外,是否可以根据附加数据文件中的响应变量让参考线穿过图形???我希望这条线代表预期滴度的位置。
再次非常感谢您的帮助,非常感谢。
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
我不确定 JMP15 中保存的脚本中的 30 值为何/来自何处。请注意,您可以使用抓取器拖动以获得轴上的最小值 5。我没有仔细看你的剧情。 该线是 Y=X 线,可以通过右键单击自定义框架框来添加。 该脚本包含在下面。
如果使用相同的比例,您可能需要在框架框中右键单击,选择“图形”和“尺寸和比例等轴测”。由你决定。
Graph Builder(
Size( 534, 484 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X(
Transform Column(
"Transform[Ref Lab]",
Formula( Log( :Ref Lab / 5, 2 ) )
)
),
Y(
Transform Column(
"Transform[Non-Ref]",
Formula( Log( :Name( "Non-Ref" ) / 5, 2 ) )
)
)
),
Elements( Points( X, Y, Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"Transform[Ref Lab]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 9 )}
),
Dispatch(
{},
"Transform[Non-Ref]",
ScaleBox,
{Format( "Custom", Formula( 2 ^ value * 5 ), 9 ), Min( 0 ), Max( 9 ),
Inc( 1 ), Minor Ticks( 0 )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Ref Lab" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Non- Ref Lab" )} ),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Marker Size( 5 ), Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "black" );
Pen Size( 2 );
Line Style( "Dotted" );
Y Function( x, x );
), Grid Line Order( 1 ), Reference Line Order( 3 )}
)
)
)
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。