我尝试在图形构建器的x轴上移动处理。我希望控制器首先在x轴上,但是当我尝试一些选项来移动位置时,只有那些将控制器放在我想要的位置,它会移动其他配对的处理。
如 @bill_worley 说,我认为你需要Value Ordering试试这个脚本
Names Default to Here(1);
bc_agegrp = Open("$Sample_data/Big Class.jmp");
//Add a new column Age Group
bc_agegrp << New Column("Age Group", character);
:Age Group << Set Each Value(If(
:age < 15, "Younger",
:age < 16, "Middle",
"Older"
));
gb1 = Graph Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :Age Group ), Y( :weight ), Color( :Age Group ) ),
Elements( Box Plot( X, Y, Legend( 6 ) ), Points( X, Y, Legend( 7 ) ) ),
SendToReport(
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {6, [0, 1, 2, 3, -3], 7, [-1, -1, -1]} ),
Position( {0, 1, 2, 3, -3, -1, -1, -1} )}
)
)
);
report(gb1)[OutlineBox(1)] << set Title("No Value Ordering");
Wait(3);
//-----Value Ordering-------
:Age Group << Set Property("Value Ordering", {"Younger", "Middle", "Older"});
要通过使用指向并单击执行此操作:
- 选择要重新排序的列
- 右键单击并选择,列属性 ,然后价值订购
- 将值上下移动到所需的顺序,然后按OK


如果可能,请分享图表的图片。 另外,您使用的是什么版本的JMP?这听起来像你可以通过价值排序来解决的问题。