Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Level III

How to color the DATA Table Box (data table) by a Column,(eg. :age)

This the example copied from "Scripting Index".

but How to color the cells based on the column("Age") for the new window, before saving the new window into a image.


Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Example", Data Table Box( dt ) );

Re: How to color the DATA Table Box (data table) by a Column,(eg. :age)

You send the Color Cells message to the data column. The first argument is color specification and the second is the optionally the row number or list of row numbers. If you do not specify the rows, then the current row selection is affected.


There is no 'color by' capability. You have to iterate over the unique values in the one column, select matching rows, and assign the next color.

Learn it once, use it forever!
Article Labels

    There are no labels assigned to this post.