cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
UserID16644
Level V

How to make combined data table from a specific plot?

Hi all, I have multiple bivariate plots and I am trying to get the Summary of Fit in one specific bivariate  plot (bivplot1). But I kept on getting every data from every bivariate plot.

How can I only get the summary of fit from a specific biv plot?

I am using these lines to get the summary of fit which is in bivplot1

 

sumfit = rbiv["Summary of Fit"][1] << make combined data table;
sumfit2 = sumfit << Split( Split By( :Column 1 ), Split( :Column 2 ) );
dt_sumfit =  Data Table Box( sumfit2 ) ;
dt_sumfit = dt_sumfit << get picture; 
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to make combined data table from a specific plot?

Make combined data table will get you results from each matching table box. Use Make into datatable with correct table box reference to get results from only one.

Here is example when getting the script from Source of datatable (this will create dublicated biv plot thou)

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Drug.jmp");

biv = Bivariate(
	SendToByGroup(Bygroup Default),
	Y(:y),
	X(:x),
	Fit Line({Line Color({76, 114, 176})}),
	SendToByGroup({:Drug == "a"}, Fit Line({Line Color({221, 132, 82})})),
	By(:Drug)
);

//Source script, will dublicate biv platform
platform = Data Table("Drug=d") << Bivariate(
	Y(:y),
	X(:x),
	Fit Line({Line Color({76, 114, 176})})
);
Wait(0);
Report(platform)[Outline Box("Bivariate Fit of y By x Drug=d")][
Outline Box("Linear Fit")][Outline Box("Summary of Fit")][Table Box(1)] <<
Make Into Data Table;
Report(platform) << Close Window;

Or use Make Combined data table and then delete rows you don't want (this is simpler solution).

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to make combined data table from a specific plot?

Make combined data table will get you results from each matching table box. Use Make into datatable with correct table box reference to get results from only one.

Here is example when getting the script from Source of datatable (this will create dublicated biv plot thou)

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Drug.jmp");

biv = Bivariate(
	SendToByGroup(Bygroup Default),
	Y(:y),
	X(:x),
	Fit Line({Line Color({76, 114, 176})}),
	SendToByGroup({:Drug == "a"}, Fit Line({Line Color({221, 132, 82})})),
	By(:Drug)
);

//Source script, will dublicate biv platform
platform = Data Table("Drug=d") << Bivariate(
	Y(:y),
	X(:x),
	Fit Line({Line Color({76, 114, 176})})
);
Wait(0);
Report(platform)[Outline Box("Bivariate Fit of y By x Drug=d")][
Outline Box("Linear Fit")][Outline Box("Summary of Fit")][Table Box(1)] <<
Make Into Data Table;
Report(platform) << Close Window;

Or use Make Combined data table and then delete rows you don't want (this is simpler solution).

 

-Jarmo