cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Dennisbur
Level IV

Script for Journal

Hello

I have written a simple script as well:

1) to open the file "Big Class Data"

2) to create a Distribution and Variability Chart graphics

3) to save all graphics in Journal

4) close the table "Big Class Data"

 

 

dt = Open("C:\Users\dburmist\Downloads\JSL Files and Exercises\Ex 6 - Big Class Data.jmp");

// Distribution for big class
distribution_obj = Distribution(
	Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0), ),

);

distribution_obj << Journal();
distribution_obj << Close Window();

// Variability for big class
variability_obj = Variability Chart(
	Y(:height),
	X(:sex),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Std Dev Chart(0),
	Points Jittered(1)
);

variability_obj << Journal();
variability_obj << Close Window();

Close(dt, nosave);

At the end, I received Journal with links only without graphics of Distribution and Variability Chart.

How I can receive Journal with picture of graphics?

 

Dennisbur_0-1672062073600.png

 

Thank you

Dennis

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Script for Journal

What you need to do, is to just save the report from the Distribution and the Variability Platforms, not the executable.  Try the code below

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

// Distribution for big class
distribution_obj = Distribution(
	Continuous Distribution( Column( :height ), Horizontal Layout( 1 ), Vertical( 0 ), ), 

);

distribution_obj << report << Journal();
distribution_obj << Close Window();

// Variability for big class
variability_obj = Variability Chart(
	Y( :height ),
	X( :sex ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 )
);

variability_obj << report << Journal();
variability_obj << Close Window();

Close( dt, nosave );

txnelson_0-1672067369558.png

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Script for Journal

What you need to do, is to just save the report from the Distribution and the Variability Platforms, not the executable.  Try the code below

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

// Distribution for big class
distribution_obj = Distribution(
	Continuous Distribution( Column( :height ), Horizontal Layout( 1 ), Vertical( 0 ), ), 

);

distribution_obj << report << Journal();
distribution_obj << Close Window();

// Variability for big class
variability_obj = Variability Chart(
	Y( :height ),
	X( :sex ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 )
);

variability_obj << report << Journal();
variability_obj << Close Window();

Close( dt, nosave );

txnelson_0-1672067369558.png

 

Jim