Life Distribution - 如何在同一张图中制作 2 个图,一个显示生存,另一个不显示生存?我有一个区间删失数据表,当我做生命分布 --> 比较组时,它给了我 Plot1;我真正想要的是 Plot2,为了做到这一点,我必须在没有比较组的情况下进行生命分布,使用单独的 EVO/PVO 图生成 plot3,更改 EVO 以显示生存曲线,手动复制 PVO 图的帧内容并粘贴帧内容进入 EVO 图以获得 plot2。它非常手动,有没有使用脚本生成 Plot2 的好方法?

生命分布 --> 比较组

情节1

Plot2,左线是EVO显示生存, 右图是 PVO不显示生存;

寿命分布 --> 通过 EVO/PVO

图 3,EVO 有显示生存, PVO 有炫耀生存

图形脚本编写回复:生命分布 - 如何在同一张图中制作 2 个图,一个显示生存,另一个不显示生存?也许是这样的:
//Your By-group analysis script.
obj = Life Distribution(
SendToByGroup( Bygroup Default ),
Y( :Y ),
//other messages
By( :Group )
);
//Get the display box trees of the two Life Distribution results.
rpt1 = report(obj[1]);
rpt2 = report(obj[2]);
//Get the correct frame boxes, send copy-paste messages.
//Finding the number in framebox(...) is the key.
//The number is relative to the root of tree. Here rpt1 and rpt2 are two roots.
//And the frameboxes are the SECOND frameboxes.
//The FIRST frameboxes relative to rpt1 and rpt1 are the Event Plot frames.
rpt1[framebox(2)] << copy frame contents;
rpt2[framebox(2)] << paste frame contents;