cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
r30363
Level II

Life Distribution - how to make the 2 plots in the same graph, one to show survival on, the other one not to show survival on?

I have an interval censored data table, when I do Life distribution --> compare groups, it gave me Plot1; what I really want is Plot2, in order to do that, I have to do life distribution without compare groups, generate plot3 with separate EVO/PVO plots, change the EVO to show survival curve, manually copy frame contents of PVO plot and paste frame contents into the EVO plot to get plot2. it is very manual, is there a good way to use scripts to generate Plot2?

 

r30363_6-1623257090681.png

life distribution --> Compare groups

r30363_2-1623256666099.png

Plot1

r30363_7-1623257694048.png

 

 

 

Plot2, left line is EVO with show survival on, right plot is PVO no show survival on;

r30363_5-1623257040929.png

 

life distribution --> by EVO/PVO

r30363_3-1623256803812.png

Plot3, EVO has show survival on, PVO has show survival off

r30363_4-1623256951888.png

 

 

 

 

1 REPLY 1
peng_liu
Staff

Re: Life Distribution - how to make the 2 plots in the same graph, one to show survival on, the other one not to show survival on?

Maybe something like this:

//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;