cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP 19 is here! See the new features at jmp.com/new.
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
Choose Language Hide Translation Bar
lala
Level IX

How can make this diagram with JSL?

Hello!

 For example, using the big class example, The number of rows on the "age" line is similar to bubble chart ABCD column.Use different colors and values to determine bubble size based on the positive and negative values of the four columns. Just like this example.

2023-04-14_22-42-21.png

1 REPLY 1
lala
Level IX

回复: How can make this diagram with JSL?

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
m = {"A", "B", "C", "D"};
For( i = 1, i <= N Items( m ), i++,
	New Column( m[i] )
);
Column( "A" ) << Formula( If( Mod( Row(), 5 ) == 0, height ) );
dt << run formulas;
Column( "A" ) << deleteFormula;
Column( "B" ) << Formula( If( Mod( Row(), 7 ) == 0, weight ) );
dt << run formulas;
Column( "B" ) << deleteFormula;
Column( "C" ) << Formula( If( Mod( Row(), 5 ) == 0, -height ) );
dt << run formulas;
Column( "C" ) << deleteFormula;
Column( "D" ) << Formula( If( Mod( Row(), 7 ) == 0, -weight ) );
dt << run formulas;
Column( "D" ) << deleteFormula;

2023-04-14_22-39-46.png

Recommended Articles