cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.

JSL Cookbook - Archived

Building blocks of JSL code to reduce your coding workload.
Choose Language Hide Translation Bar

Latest Posts

  • Create a Box Plot from a Five-Number Summary

    Problem Instead of a full data set, you have a summarized version that contains the five numbers needed to define a box plot. Solution You can use frequencies to mimic a full data set based on the five-number summary. If you enter the five data points in a data table and then create a second column with frequencies that force your data points to be at the appropriate quantiles, you can use that...

    michael_jmp michael_jmp
    JSL Cookbook - Archived |
    Jul 5, 2017 1:15 PM
    1802 views | 0 replies
  • Compute Row Sums of a Matrix

    Problem You have a matrix stored in JSL, and you would like to create a column vector that contains the sums of each row of values in the matrix. Solution Use a combination of the V Sum() function and matrix transposes:
    M = [1 2 3, 4 5 6, 7 8 9]; V = V Sum( M` )`; Show( V );
    The above script results in the following output in the Log window: Show( V ); /*: V = [6, 15, 24];   Discussion   Se...

    michael_jmp michael_jmp
    JSL Cookbook - Archived |
    Jun 27, 2017 12:23 PM
    1833 views | 0 replies
  • Select a Means Compare Circle in the Oneway Platform Report

    Problem You want to select one of the comparison circles produced by the Compare Means options in the Oneway platform. This is the JSL equivalent of clicking on one of the comparison circles to select it, and it results in all of the circles in the report getting colored according to the results of the means comparison. Solution You can send the Select Group() message to the Oneway object and s...

    michael_jmp michael_jmp
    JSL Cookbook - Archived |
    Jun 26, 2017 7:56 AM
    1245 views | 0 replies
JSL Cookbook

If you’re looking for a code snippet or design pattern that performs a common task for your JSL project, the JSL Cookbook is for you.

This knowledge base contains building blocks of JSL code that you can use to reduce the amount of coding you have to do yourself.

It's also a great place to learn from the experts how to use JSL in new ways, with best practices.