14.03.2014 Views

Scripting Guide - JMP

Scripting Guide - JMP

Scripting Guide - JMP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 Introducing JSL Chapter 1<br />

Samples of JSL Scripts<br />

Figure 1.5 Example: Interactive Bivariate<br />

Here’s a brief explanation of how this script works. First launch Bivariate with the height and weight<br />

variables and an orthogonal fit based on the variance ratio as defined in the myVarRatio variable:<br />

biv=Bivariate(Y(weight), X(height), Fit Orthogonal(10^myVarRatio));<br />

Then make a slider box that goes from –5 to 5 and sets a value for the global variable myVarRatio. The<br />

slider box then has a script that sends two messages to the Bivariate platform, the first to remove the<br />

current fit, and the second to add a new fit with the chosen variance ratio.<br />

slider box (-5,5, myVarRatio,<br />

biv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!