我想知道在下图中添加一个 N 点标签是不是一件容易的事? 因此它会根据在本地数据过滤器中选择的内容显示该年龄/性别组中的人数。因此,将鼠标悬停在当前选择 12 岁(罗伯特和蒂姆)的邮件行上应该会显示 N = 2。
我明确不想添加点元素和 N,因为我必须将鼠标移动到不同的地方才能看到它。
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt:name << Label(1);
// this shows up as a bunch of the same value instead of just the number
dt << New Column("N_sex_age", Formula(ColSum(1, :sex, :age)));
dt:"N_sex_age"n << Label(1);
dt << Graph Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :weight ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 15 ) ) ),
Local Data Filter(
Add Filter(
columns( :name ),
Where(
:name == {"LILLIE", "MARION", "MARTHA", "MICHAEL", "PHILLIP",
"ROBERT", "TIM"}
),
Display( :name, N Items( 15 ), Find( Set Text( "" ) ) )
)
)
);